Temporary workaround to fix the PSVersion issue in beta.1 release (#3740)

This commit is contained in:
Dongbo Wang authored and GitHub committed 2017-05-08 22:52:30 -07:00
1 parent 74382288ca
commit 44c6409fdd
2 files changed
+5 -2

No files matched your search

+4 -1
View File
@@ -158,7 +158,10 @@ function Start-PSBuild {
}
# save Git description to file for PowerShell to include in PSVersionTable
git --git-dir="$PSScriptRoot/.git" describe --dirty --abbrev=60 > "$psscriptroot/powershell.version"
#git --git-dir="$PSScriptRoot/.git" describe --dirty --abbrev=60 > "$psscriptroot/powershell.version"
# temporary hack to resolve the version issue
"v6.0.0-beta.1" > "$psscriptroot/powershell.version"
# create the telemetry flag file
$null = new-item -force -type file "$psscriptroot/DELETE_ME_TO_DISABLE_CONSOLEHOST_TELEMETRY"
@@ -47,7 +47,7 @@ namespace System.Management.Automation
private static Version s_psV4Version = new Version(4, 0);
private static Version s_psV5Version = new Version(5, 0);
private static Version s_psV51Version = new Version(5, 1, NTVerpVars.PRODUCTBUILD, NTVerpVars.PRODUCTBUILD_QFE);
private static SemanticVersion s_psV6Version = new SemanticVersion(6, 0, 0, "alpha");
private static SemanticVersion s_psV6Version = new SemanticVersion(6, 0, 0, "beta");
/// <summary>
/// A constant to track current PowerShell Edition