File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -2067,6 +2067,8 @@ stages:
2067
2067
-p:ProductVersion=${{ parameters.ProductVersion }}${{ parameters.BuildTag }}
2068
2068
-p:CERTIFICATE=$(certificate.secureFilePath)
2069
2069
-p:PASSPHRASE=$(CERTIFICATE_PASSWORD)
2070
+ -p:VCRedistInstaller="${env:VCToolsRedistDir}\vc_redist.${env:VSCMD_ARG_TGT_ARCH}.exe"
2071
+ -p:VSVersion=${env:VSCMD_VER}
2070
2072
-p:INCLUDE_AMD64_SDK=true
2071
2073
-p:INCLUDE_X86_SDK=true
2072
2074
-p:INCLUDE_ARM64_SDK=true
Original file line number Diff line number Diff line change @@ -1969,6 +1969,8 @@ jobs:
1969
1969
-p:CERTIFICATE=${env:CERTIFICATE} `
1970
1970
-p:PASSPHRASE=${{ secrets.PASSPHRASE }} `
1971
1971
-p:BundleFlavor=offline `
1972
+ -p:VCRedistInstaller="${env:VCToolsRedistDir}\vc_redist.${env:VSCMD_ARG_TGT_ARCH}.exe" `
1973
+ -p:VSVersion=${env:VSCMD_VER} `
1972
1974
-p:INCLUDE_AMD64_SDK=true `
1973
1975
-p:INCLUDE_X86_SDK=true `
1974
1976
-p:INCLUDE_ARM64_SDK=true `
Original file line number Diff line number Diff line change @@ -1562,6 +1562,15 @@ function Build-Installer() {
1562
1562
SWIFT_DOCC_RENDER_ARTIFACT_ROOT = " ${SourceCache} \swift-docc-render-artifact" ;
1563
1563
}
1564
1564
1565
+ Isolate- EnvVars {
1566
+ Invoke-VsDevShell $HostArch
1567
+ $VCRedistInstallerPath = " ${env: VCToolsRedistDir} \vc_redist.$ ( $HostArch.ShortName ) .exe"
1568
+ if (Test-Path $VCRedistInstallerPath ) {
1569
+ $Properties [" VCRedistInstaller" ] = $VCRedistInstallerPath
1570
+ $Properties [" VSVersion" ] = $env: VSCMD_VER
1571
+ }
1572
+ }
1573
+
1565
1574
foreach ($Arch in $SDKArchs ) {
1566
1575
$Properties [" INCLUDE_$ ( $Arch.VSName.ToUpperInvariant ()) _SDK" ] = " true"
1567
1576
$Properties [" PLATFORM_ROOT_$ ( $Arch.VSName.ToUpperInvariant ()) " ] = " $ ( $Arch.PlatformInstallRoot ) \"
You can’t perform that action at this time.
0 commit comments