diff options
| author | Hein-Pieter van Braam | 2018-04-30 12:50:42 +0200 |
|---|---|---|
| committer | Hein-Pieter van Braam | 2018-04-30 12:54:51 +0200 |
| commit | cd9b0d7cc36645d94a76e527f21e6b1d5081d540 (patch) | |
| tree | c687c50401207a83bbf812a7328bea91b68a733f | |
| parent | 8e301c69cb86a980a6702f8a0ab801f7952aa30b (diff) | |
| download | godot-cd9b0d7cc36645d94a76e527f21e6b1d5081d540.tar.gz godot-cd9b0d7cc36645d94a76e527f21e6b1d5081d540.tar.zst godot-cd9b0d7cc36645d94a76e527f21e6b1d5081d540.zip | |
Fix msbuild with a msvc 'tools only' install
Taken from https://github.com/Microsoft/vswhere/wiki/Find-MSBuild
without '-products *' vswhere does not locate msbuild when installing a
tools-only (no IDE) version of the microsoft compilers.
(cherry picked from commit 0ec912a79e867dbd4beff9c19c393dce87d9a419)
| -rw-r--r-- | modules/mono/mono_reg_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/mono_reg_utils.py b/modules/mono/mono_reg_utils.py index 8ddddb3a2..9c188d07a 100644 --- a/modules/mono/mono_reg_utils.py +++ b/modules/mono/mono_reg_utils.py @@ -75,7 +75,7 @@ def find_msbuild_tools_path_reg(): vswhere = os.getenv('PROGRAMFILES') vswhere += r'\Microsoft Visual Studio\Installer\vswhere.exe' - vswhere_args = ['-latest', '-requires', 'Microsoft.Component.MSBuild'] + vswhere_args = ['-latest', '-products', '*', '-requires', 'Microsoft.Component.MSBuild'] try: lines = subprocess.check_output([vswhere] + vswhere_args).splitlines() |
