浏览代码

Merge pull request #32519 from akien-mga/mono-fix-msbuild-vs

Mono: Fix detection of MsBuild from Visual Studio
Rémi Verschelde 6 年之前
父节点
当前提交
d86c9ef2e6
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      modules/mono/editor/GodotTools/GodotTools/Build/MsBuildFinder.cs

+ 2 - 2
modules/mono/editor/GodotTools/GodotTools/Build/MsBuildFinder.cs

@@ -34,7 +34,7 @@ namespace GodotTools.Build
 
                             if (_msbuildToolsPath.Empty())
                             {
-                                throw new FileNotFoundException($"Cannot find executable for '{BuildManager.PropNameMsbuildVs}'. Tried with path: {_msbuildToolsPath}");
+                                throw new FileNotFoundException($"Cannot find executable for '{BuildManager.PropNameMsbuildVs}'.");
                             }
                         }
 
@@ -142,7 +142,7 @@ namespace GodotTools.Build
             int exitCode = Godot.OS.Execute(vsWherePath, vsWhereArgs,
                 blocking: true, output: (Godot.Collections.Array) outputArray);
 
-            if (exitCode == 0)
+            if (exitCode != 0)
                 return string.Empty;
 
             if (outputArray.Count == 0)