diff --git a/powershell/resources/psruntime/BuildTime/Cmdlets/ExportPsd1.cs b/powershell/resources/psruntime/BuildTime/Cmdlets/ExportPsd1.cs index fd7a71e4672..38b333994e7 100644 --- a/powershell/resources/psruntime/BuildTime/Cmdlets/ExportPsd1.cs +++ b/powershell/resources/psruntime/BuildTime/Cmdlets/ExportPsd1.cs @@ -163,7 +163,7 @@ protected override void ProcessRecord() if (previewVersion != null) { - sb.AppendLine($@"{Indent}{Indent}{Indent}Prerelease = {previewVersion}"); + sb.AppendLine($@"{Indent}{Indent}{Indent}Prerelease = '{previewVersion}'"); } sb.AppendLine($@"{Indent}{Indent}{Indent}Tags = {"${$project.metadata.tags}".Split(' ').ToPsList().NullIfEmpty() ?? "''"}"); sb.AppendLine($@"{Indent}{Indent}{Indent}LicenseUri = '{"${$project.metadata.licenseUri}"}'");