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.
1 parent 3eea9d6 commit 258c420Copy full SHA for 258c420
utils/build.ps1
@@ -1579,10 +1579,10 @@ function Build-Installer($Arch) {
1579
1580
Isolate-EnvVars {
1581
Invoke-VsDevShell $Arch
1582
- $VCRedistInstallerPath = "${env:VCToolsRedistDir}\vc_redist.$($Arch.ShortName).exe"
1583
- if (Test-Path $VCRedistInstallerPath) {
1584
- $Properties["VCRedistInstaller"] = $VCRedistInstallerPath
1585
- $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\"
1586
}
1587
1588
0 commit comments