From 6aed0cd3614f9b740cfb3f21fdb795bab53ef7e9 Mon Sep 17 00:00:00 2001 From: John Beisner Date: Fri, 1 Mar 2019 13:07:12 -0800 Subject: [PATCH] Fixing the SDK bundle installer's versioning. (#755) --- src/redist/targets/GenerateMSIs.targets | 4 ++-- src/redist/targets/Versions.targets | 3 +-- src/redist/targets/packaging/windows/clisdk/bundle.wxs | 2 +- .../targets/packaging/windows/clisdk/generatebundle.ps1 | 4 ++-- src/redist/targets/packaging/windows/clisdk/generatemsi.ps1 | 4 ++-- src/redist/targets/packaging/windows/clisdk/variables.wxi | 4 ++-- 6 files changed, 10 insertions(+), 11 deletions(-) diff --git a/src/redist/targets/GenerateMSIs.targets b/src/redist/targets/GenerateMSIs.targets index 5b46f16b1..e709e0229 100644 --- a/src/redist/targets/GenerateMSIs.targets +++ b/src/redist/targets/GenerateMSIs.targets @@ -113,7 +113,7 @@ '$(WixRoot)' ^ '$(SdkBrandName)' ^ '$(MsiVersion)' ^ - '$(SimpleVersion)' ^ + '$(SDKBundleVersion)' ^ '$(NugetVersion)' ^ '$(SdkInstallerUpgradeCode)' ^ '$(Architecture)' ^ @@ -144,7 +144,7 @@ '$(WixRoot)' ^ '$(SdkBrandName)' ^ '$(MsiVersion)' ^ - '$(SimpleVersion)' ^ + '$(SDKBundleVersion)' ^ '$(NugetVersion)' ^ '$(MicrosoftWindowsDesktopPackageVersion)' ^ '$(CombinedFrameworkSDKHostInstallerUpgradeCode)' ^ diff --git a/src/redist/targets/Versions.targets b/src/redist/targets/Versions.targets index f59d228ea..84d08f9ca 100644 --- a/src/redist/targets/Versions.targets +++ b/src/redist/targets/Versions.targets @@ -33,8 +33,7 @@ $(CliVersionNoSuffix)-$(ReleaseSuffix) $(CliVersionNoSuffix) - $(ReleaseSuffix) $(CliVersionNoSuffix) - $(CliVersionNoSuffix).$(GitCommitCount) - $(CliVersionNoSuffix) + $(CliVersionNoSuffix).$(GitCommitCount) $(ReleaseSuffix)-$(GitCommitCount) diff --git a/src/redist/targets/packaging/windows/clisdk/bundle.wxs b/src/redist/targets/packaging/windows/clisdk/bundle.wxs index e5502d02d..5defdb31f 100644 --- a/src/redist/targets/packaging/windows/clisdk/bundle.wxs +++ b/src/redist/targets/packaging/windows/clisdk/bundle.wxs @@ -6,7 +6,7 @@ diff --git a/src/redist/targets/packaging/windows/clisdk/generatebundle.ps1 b/src/redist/targets/packaging/windows/clisdk/generatebundle.ps1 index 9de573467..491cac30e 100644 --- a/src/redist/targets/packaging/windows/clisdk/generatebundle.ps1 +++ b/src/redist/targets/packaging/windows/clisdk/generatebundle.ps1 @@ -14,7 +14,7 @@ param( [Parameter(Mandatory=$true)][string]$WixRoot, [Parameter(Mandatory=$true)][string]$ProductMoniker, [Parameter(Mandatory=$true)][string]$DotnetMSIVersion, - [Parameter(Mandatory=$true)][string]$DotnetCLIDisplayVersion, + [Parameter(Mandatory=$true)][string]$SDKBundleVersion, [Parameter(Mandatory=$true)][string]$DotnetCLINugetVersion, [Parameter(Mandatory=$true)][string]$WindowsDesktopVersion, [Parameter(Mandatory=$true)][string]$UpgradeCode, @@ -37,7 +37,7 @@ function RunCandleForBundle -dMicrosoftEula="$PSScriptRoot\dummyeula.rtf" ` -dProductMoniker="$ProductMoniker" ` -dBuildVersion="$DotnetMSIVersion" ` - -dDisplayVersion="$DotnetCLIDisplayVersion" ` + -dSDKBundleVersion="$SDKBundleVersion" ` -dSDKProductBandVersion="$SDKProductBandVersion" ` -dNugetVersion="$DotnetCLINugetVersion" ` -dCLISDKMsiSourcePath="$CLISDKMSIFile" ` diff --git a/src/redist/targets/packaging/windows/clisdk/generatemsi.ps1 b/src/redist/targets/packaging/windows/clisdk/generatemsi.ps1 index 96bc6f508..146704113 100644 --- a/src/redist/targets/packaging/windows/clisdk/generatemsi.ps1 +++ b/src/redist/targets/packaging/windows/clisdk/generatemsi.ps1 @@ -7,7 +7,7 @@ param( [Parameter(Mandatory=$true)][string]$WixRoot, [Parameter(Mandatory=$true)][string]$ProductMoniker, [Parameter(Mandatory=$true)][string]$DotnetMSIVersion, - [Parameter(Mandatory=$true)][string]$DotnetCLIDisplayVersion, + [Parameter(Mandatory=$true)][string]$SDKBundleVersion, [Parameter(Mandatory=$true)][string]$DotnetCLINugetVersion, [Parameter(Mandatory=$true)][string]$UpgradeCode, [Parameter(Mandatory=$true)][string]$Architecture, @@ -63,7 +63,7 @@ function RunCandle -dMicrosoftEula="$PSScriptRoot\clisdk\dummyeula.rtf" ` -dProductMoniker="$ProductMoniker" ` -dBuildVersion="$DotnetMSIVersion" ` - -dDisplayVersion="$DotnetCLIDisplayVersion" ` + -dSDKBundleVersion="$SDKBundleVersion" ` -dNugetVersion="$DotnetCLINugetVersion" ` -dUpgradeCode="$UpgradeCode" ` -arch "$Architecture" ` diff --git a/src/redist/targets/packaging/windows/clisdk/variables.wxi b/src/redist/targets/packaging/windows/clisdk/variables.wxi index bcef69b81..3b1202e2f 100644 --- a/src/redist/targets/packaging/windows/clisdk/variables.wxi +++ b/src/redist/targets/packaging/windows/clisdk/variables.wxi @@ -4,7 +4,7 @@ - + @@ -30,6 +30,6 @@ - +