Skip to content

Commit 05135c4

Browse files
5an7yCopilot
andcommitted
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 <223556219+Copilot@users.noreply.github.com>
1 parent 084c783 commit 05135c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

BuildEnvironment.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function Get-VsInstallationsWithWdk {
1818
exit 1
1919
}
2020

21-
$json = & $vswhere -all -format json -requires Microsoft.Windows.DriverKit -include packages 2>$null
21+
$json = & $vswhere -all -products * -format json -requires Microsoft.Windows.DriverKit -include packages 2>$null
2222
$installations = $json | ConvertFrom-Json
2323
return $installations | ForEach-Object {
2424
$wdkPackage = $_.packages | Where-Object { $_.id -eq 'Microsoft.Windows.DriverKit' } | Select-Object -First 1

0 commit comments

Comments
 (0)