File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -253,6 +253,10 @@ function Start-BuildNativeWindowsBinaries {
253253 $alternateVCPath = (Get-ChildItem " ${env: ProgramFiles(x86)} \Microsoft Visual Studio\2017" - Filter " VC" - Directory - Recurse - ErrorAction SilentlyContinue) | Select-Object - First 1 - ExpandProperty FullName
254254 }
255255
256+ if (-not $alternateVCPath ) {
257+ $alternateVCPath = (Get-ChildItem " ${env: ProgramFiles} \Microsoft Visual Studio\2022" - Filter " VC" - Directory - Recurse - ErrorAction SilentlyContinue) | Select-Object - First 1 - ExpandProperty FullName
258+ }
259+
256260 Write-Verbose - Verbose " alternateVCPath: $alternateVCPath "
257261
258262 $atlBaseFound = $false
@@ -294,7 +298,7 @@ function Start-BuildNativeWindowsBinaries {
294298 {
295299 Write-Verbose - Verbose " checking 2017 path"
296300 $vcvarsallbatPathVS2017 = ( Get-ChildItem $alternateVCPath - Filter vcvarsall.bat - Recurse - File - ErrorAction SilentlyContinue | Select-Object - First 1 - ExpandProperty FullName)
297- Write-Vebose - Verbose " vcvarsallbatPathVS2017: $vcvarsallbatPathVS2017 "
301+ Write-Verbose - Verbose " vcvarsallbatPathVS2017: $vcvarsallbatPathVS2017 "
298302
299303 if (Test-Path $vcvarsallbatPathVS2017 )
300304 {
You can’t perform that action at this time.
0 commit comments