mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-09 01:45:36 +08:00
fix(windows): add -products * to vswhere so Build Tools are found
vswhere.exe defaults to searching Community, Professional, and Enterprise editions only. CI environments typically install the lightweight Build Tools product which is a separate product type (Microsoft.VisualStudio.Product.BuildTools). Without -products * the tool returns no results and the build fails with "Visual Studio with C++ tools not found". See: https://github.com/microsoft/vswhere/wiki/Find-MSBuild
This commit is contained in:
@@ -54,6 +54,7 @@ class WindowsUtil
|
|||||||
}
|
}
|
||||||
$args = [
|
$args = [
|
||||||
'-latest',
|
'-latest',
|
||||||
|
'-products', '*',
|
||||||
'-format', 'json',
|
'-format', 'json',
|
||||||
'-requires', 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64',
|
'-requires', 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64',
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user