Fix the logic to pass in the version of VS all the way through to the candle app

This commit is contained in:
Marc Paine 2023-04-14 14:25:04 -07:00
parent fffc681edd
commit f095e7a60b
2 changed files with 8 additions and 3 deletions

View file

@ -315,9 +315,12 @@
Outputs="$(MinimumVSVersion)">
<PropertyGroup>
<FileToRead Condition="$([System.Text.RegularExpressions.Regex]::Match(%(SDKInternalFiles.Identity),'.*minimumMSBuildVersion').Success) ">%(SDKInternalFiles.Identity)</FileToRead>
<MinimumVSVersion>$([System.IO.File]::ReadAllText($(FileToRead)).Trim())</MinimumVSVersion>
<MinimumMSBuildVersionFile Condition="$([System.Text.RegularExpressions.Regex]::Match(%(SDKInternalFiles.Identity),'.*minimumMSBuildVersion').Success) ">%(SDKInternalFiles.Identity)</MinimumMSBuildVersionFile>
</PropertyGroup>
<ReadLinesFromFile File="$(MinimumMSBuildVersionFile)">
<Output TaskParameter="Lines" PropertyName="MinimumVSVersion"/>
</ReadLinesFromFile>
</Target>
<Target Name="GenerateSdkBundle"
@ -365,6 +368,7 @@
-DotnetCLINugetVersion '$(Version)' ^
-VersionMajor '$(VersionMajor)' ^
-VersionMinor '$(VersionMinor)' ^
-MinimumVSVersion '$(MinimumVSVersion)' ^
-WindowsDesktopVersion '$(MicrosoftWindowsDesktopAppRuntimePackageVersion)' ^
-UpgradeCode '$(CombinedFrameworkSDKHostInstallerUpgradeCode)' ^
-DependencyKeyName '$(SdkDependencyKeyName)' ^

View file

@ -24,6 +24,7 @@ param(
[Parameter(Mandatory=$true)][string]$ProductMoniker,
[Parameter(Mandatory=$true)][string]$DotnetMSIVersion,
[Parameter(Mandatory=$true)][string]$SDKBundleVersion,
[Parameter(Mandatory=$true)][string]$MinimumVSVersion,
[Parameter(Mandatory=$true)][string]$DotnetCLINugetVersion,
[Parameter(Mandatory=$true)][string]$VersionMajor,
[Parameter(Mandatory=$true)][string]$VersionMinor,
@ -49,6 +50,7 @@ function RunCandleForBundle
-dProductMoniker="$ProductMoniker" `
-dBuildVersion="$DotnetMSIVersion" `
-dSDKBundleVersion="$SDKBundleVersion" `
-dMinimumVSVersion="$MinimumVSVersion" `
-dSDKProductBandVersion="$SDKProductBandVersion" `
-dNugetVersion="$DotnetCLINugetVersion" `
-dVersionMajor="$VersionMajor" `
@ -72,7 +74,6 @@ function RunCandleForBundle
-dTemplatesMsiSourcePath="$TemplatesMSIFile" `
-dManifestsMsiSourcePath="$ManifestsMSIFile" `
-dWinFormsAndWpfVersion="$WindowsDesktopVersion" `
-dMinimumVSVersion="$MinimumVSVersion" `
-dAdditionalSharedFXMsiSourcePath="$AdditionalSharedFxMSIFile" `
-dAdditionalHostFXRMsiSourcePath="$AdditionalHostFxrMSIFile" `
-dAdditionalSharedHostMsiSourcePath="$AdditionalSharedHostMSIFile" `