You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-02 16:48:55 +00:00
Mono: Fix detection of MsBuild from Visual Studio
This was a wrong check as an exit code of 0 means success, not failure. It used to be fine as blocking mode always returned -2, but this was changed in #32033 to return the exit code. Fixes #32424.
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user