Răsfoiți Sursa

Merge pull request #18522 from hpvb/fix-find-msbuild

Fix msbuild with a msvc 'tools only' install
Max Hilbrunner 7 ani în urmă
părinte
comite
ea163673c7
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      modules/mono/mono_reg_utils.py

+ 1 - 1
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()