We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ef83cff + 258c420 commit ecc302bCopy full SHA for ecc302b
utils/build.ps1
@@ -1688,10 +1688,10 @@ function Build-Installer($Arch) {
1688
1689
Isolate-EnvVars {
1690
Invoke-VsDevShell $Arch
1691
- $VCRedistInstallerPath = "${env:VCToolsRedistDir}\vc_redist.$($Arch.ShortName).exe"
1692
- if (Test-Path $VCRedistInstallerPath) {
1693
- $Properties["VCRedistInstaller"] = $VCRedistInstallerPath
1694
- $Properties["VSVersion"] = $env:VSCMD_VER
+ # Avoid hard-coding the VC tools version number
+ $VCRedistDir = (Get-ChildItem "${env:VCToolsRedistDir}\$($HostArch.ShortName)" -Filter "Microsoft.VC*.CRT").FullName
+ if ($VCRedistDir) {
+ $Properties["VCRedistDir"] = "$VCRedistDir\"
1695
}
1696
1697
0 commit comments