Godot client closes after Mono Build

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By sominator

Hi all,

I’m trying out Godot (or, more accurately, attempting to try out Godot) to see if it might be a potential resource for a game in development.

Upon trying to build a project after attaching any C# script (even an empty one) to a node, the client closes without warning, and I’m not sure what’s causing the issue. The client doesn’t provide any log or update the one that’s auto-generated upon start.

I’ve Googled as much as possible but, without having any information about where to start, I’m not sure what’s going on.

Any suggestions would be helpful - thanks in advance!

:bust_in_silhouette: Reply From: sominator

Update: I received the suggestion to run the client through the command prompt, which output the following error upon build:

ERROR: godot_icall_BuildInstance_get_MSBuildPath: Cannot find executable for ‘MSBuild (VS Build Tools)’. Tried with path:
At: modules/mono/editor/godotsharp_builds.cpp:105

Unhandled Exception:
System.IO.FileNotFoundException: Cannot find the MSBuild executable.
at GodotSharpTools.Build.BuildInstance.GetMSBuildPath () [0x00013] in <32a76a9df224459d83b0375c3bbf8619>:0
at GodotSharpTools.Build.BuildInstance.Build (System.String loggerAssemblyPath, System.String loggerOutputDir, System.String customProperties) [0x0001a] in <32a76a9df224459d83b0375c3bbf8619>:0

Upon further Googling, it seems that others have had similar issues related to the path where MSBuild tools are supposed to live. I went ahead and uninstalled Visual Studio 2017 Community and installed 2019. That seemed to work. [shrug]