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

Mono: Fix detection of MsBuild from Visual Studio
This commit is contained in:
Rémi Verschelde 2019-10-03 18:01:37 +02:00 committed by GitHub
commit d86c9ef2e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,7 +34,7 @@ namespace GodotTools.Build
if (_msbuildToolsPath.Empty()) 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, int exitCode = Godot.OS.Execute(vsWherePath, vsWhereArgs,
blocking: true, output: (Godot.Collections.Array) outputArray); blocking: true, output: (Godot.Collections.Array) outputArray);
if (exitCode == 0) if (exitCode != 0)
return string.Empty; return string.Empty;
if (outputArray.Count == 0) if (outputArray.Count == 0)