File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -295,14 +295,16 @@ function Start-BuildNativeWindowsBinaries {
295
295
Write-Verbose - Verbose " checking 2017 path"
296
296
$vcvarsallbatPathVS2017 = ( Get-ChildItem $alternateVCPath - Filter vcvarsall.bat - Recurse - File - ErrorAction SilentlyContinue | Select-Object - First 1 - ExpandProperty FullName)
297
297
Write-Vebose - Verbose " vcvarsallbatPathVS2017: $vcvarsallbatPathVS2017 "
298
- }
299
298
300
- if (Test-Path $vcvarsallbatPathVS2017 )
301
- {
302
- # prefer VS2017 path
303
- $vcvarsallbatPath = $vcvarsallbatPathVS2017
299
+ if (Test-Path $vcvarsallbatPathVS2017 )
300
+ {
301
+ # prefer VS2017 path
302
+ $vcvarsallbatPath = $vcvarsallbatPathVS2017
303
+ }
304
304
}
305
305
306
+ Write-Verbose - Verbose " Checking if we found vcvarsall.bat"
307
+
306
308
if ([string ]::IsNullOrEmpty($vcvarsallbatPath ) -or (Test-Path - Path $vcvarsallbatPath ) -eq $false ) {
307
309
throw " Could not find Visual Studio vcvarsall.bat at $vcvarsallbatPath . Please ensure the optional feature 'Common Tools for Visual C++' is installed."
308
310
}
You can’t perform that action at this time.
0 commit comments