File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -247,7 +247,12 @@ function Start-BuildNativeWindowsBinaries {
247247 }
248248 Write-Verbose - Verbose " VCPath: $vcPath "
249249
250- $alternateVCPath = (Get-ChildItem " ${env: ProgramFiles} \Microsoft Visual Studio\2022" - Filter " VC" - Directory - Recurse) | Select-Object - First 1 - ExpandProperty FullName
250+ $alternateVCPath = (Get-ChildItem " ${env: ProgramFiles} \Microsoft Visual Studio\2022" - Filter " VC" - Directory - Recurse - ErrorAction SilentlyContinue) | Select-Object - First 1 - ExpandProperty FullName
251+
252+ if (-not $alternateVCPath ) {
253+ $alternateVCPath = (Get-ChildItem " ${env: ProgramFiles(x86)} \Microsoft Visual Studio\2022" - Filter " VC" - Directory - Recurse - ErrorAction SilentlyContinue) | Select-Object - First 1 - ExpandProperty FullName
254+ }
255+
251256 Write-Verbose - Verbose " alternateVCPath: $alternateVCPath "
252257
253258 $atlBaseFound = $false
You can’t perform that action at this time.
0 commit comments