From 05135c4ec0a93d50e84deaf6a758ca956b1cb6eb Mon Sep 17 00:00:00 2001 From: 5an7y Date: Tue, 7 Apr 2026 14:48:52 -0700 Subject: 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> --- BuildEnvironment.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.3.1