diff options
| author | 5an7y <[email protected]> | 2026-04-07 14:48:52 -0700 |
|---|---|---|
| committer | 5an7y <[email protected]> | 2026-04-07 14:48:52 -0700 |
| commit | 05135c4ec0a93d50e84deaf6a758ca956b1cb6eb (patch) | |
| tree | c8b4881a461e63150a959219e16c6c32e6d1f43e | |
| parent | 084c783c5f4ae563520b4446e4b3eeae72b8d9e8 (diff) | |
fix: include Build Tools in vswhere product search
vswhere's default product filter only includes Community, Professional,
and Enterprise editions. Build Tools (Microsoft.VisualStudio.Product.BuildTools)
requires '-products *' to be discovered. Without this, machines with only
VS Build Tools installed would fail detection.
Co-authored-by: Copilot <[email protected]>
| -rw-r--r-- | BuildEnvironment.ps1 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BuildEnvironment.ps1 b/BuildEnvironment.ps1 index 211b25a4..d05456c3 100644 --- a/BuildEnvironment.ps1 +++ b/BuildEnvironment.ps1 @@ -18,7 +18,7 @@ function Get-VsInstallationsWithWdk { exit 1 } - $json = & $vswhere -all -format json -requires Microsoft.Windows.DriverKit -include packages 2>$null + $json = & $vswhere -all -products * -format json -requires Microsoft.Windows.DriverKit -include packages 2>$null $installations = $json | ConvertFrom-Json return $installations | ForEach-Object { $wdkPackage = $_.packages | Where-Object { $_.id -eq 'Microsoft.Windows.DriverKit' } | Select-Object -First 1 |
