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 {
253
253
$alternateVCPath = (Get-ChildItem " ${env: ProgramFiles(x86)} \Microsoft Visual Studio\2017" - Filter " VC" - Directory - Recurse - ErrorAction SilentlyContinue) | Select-Object - First 1 - ExpandProperty FullName
254
254
}
255
255
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
+
256
260
Write-Verbose - Verbose " alternateVCPath: $alternateVCPath "
257
261
258
262
$atlBaseFound = $false
@@ -294,7 +298,7 @@ function Start-BuildNativeWindowsBinaries {
294
298
{
295
299
Write-Verbose - Verbose " checking 2017 path"
296
300
$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 "
298
302
299
303
if (Test-Path $vcvarsallbatPathVS2017 )
300
304
{
You can’t perform that action at this time.
0 commit comments