Skip to content

Commit b1d6f64

Browse files
authored
Update build_common.ps1 - reintroduce VS version check
The version check allows VS '26 but still checks that the user has at least VS '19 to avoid problems for people with older VS versions installed.
1 parent 84bac43 commit b1d6f64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build_common.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Write-Host "vswhere found at: $vsWhere" -ForegroundColor Yellow
3737
#
3838
# Get path to Visual Studio installation using vswhere.
3939
#
40-
$vsPath = &$vsWhere -latest -products * `
40+
$vsPath = &$vsWhere -latest -version "[16.0,19.0)" -products * `
4141
-requires Microsoft.Component.MSBuild `
4242
-property installationPath
4343
If ([string]::IsNullOrEmpty("$vsPath")) {
@@ -136,4 +136,4 @@ function PerformBuild {
136136
exit $LASTEXITCODE
137137
}
138138
}
139-
}
139+
}

0 commit comments

Comments
 (0)