diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-10-03 18:01:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-03 18:01:37 +0200 |
commit | d86c9ef2e691ced51175136b42a9cce2a8c54227 (patch) | |
tree | 96034e3fa3ee3d6556a39d18054d22a21402e1f8 /modules/mono/editor | |
parent | 409ec8bd1e92135e57cfe28cc75ec0bc6c062ca8 (diff) | |
parent | f3f2fdfbab85819b44a9024ce4336f0249064c3b (diff) |
Merge pull request #32519 from akien-mga/mono-fix-msbuild-vs
Mono: Fix detection of MsBuild from Visual Studio
Diffstat (limited to 'modules/mono/editor')
-rw-r--r-- | modules/mono/editor/GodotTools/GodotTools/Build/MsBuildFinder.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/mono/editor/GodotTools/GodotTools/Build/MsBuildFinder.cs b/modules/mono/editor/GodotTools/GodotTools/Build/MsBuildFinder.cs index 4c1e47ecad..eb2c2dd77c 100644 --- a/modules/mono/editor/GodotTools/GodotTools/Build/MsBuildFinder.cs +++ b/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) |