Hello.

I got the Problem that my Godot Mono can´t find the MSbuild.exe. I have no chance to build any stuff which is made with C#. This makes me very sad. So my question is: ... will there be a posibility in a near future version of godot to add a option to define manualy the path to : msbuild.exe . This would make such trouble obsolote.

I guess many others expirienced the same issue. Would be great if the developer would add such a option.

Have you installed MSBuild from the Visual Studio Build Tools or Mono? Generally when you get an error saying it cannot find MSBuild it means Godot cannot find the tool on the path.

Something else you can try to see if MSBuild is installed or not is running msbuild -version in the Terminal/Console and seeing if anything happens. If installed correctly, you should get some info about the version of MSBuild you have installed.

Hey.

Thx for the fast respond ! I installed it from the "Visual Studio Build Tools". I didnt know there is a way to get MSbuild.exe from Mono ? Is there any information how to get the Mono Version running? Links / Tutorials ...

I tried "msbuild -version". But it didnt find / show anything. I swear, i installed it, and the "vs_installer.exe" shows up everything correctly. My wish would be: why Godot dont implement a simple path-option where i can point to the Build-Tools. Would make live much easier for some users, i would say.

Make sure to check the system path variable.

heres a guide from someone who has clearly experienced some serious PTST worthy pain from this in the past(one of the first google results!).

Thank you for the good informations.

First what i read there: "Where the duck is MSBuild.exe?" =) Like you said, seems like he was really annoyed by this. I will read it and try to make some progress with my Godot-issues. Guess i can fix it. I will write back how far i will get with this .

Back again.

I installed: - Godot 3.3.2 MONO x32bit - Net 4.7.2 - visual Studio build tools 2019 - dotnet-sdk-3.1.411-win-x86.exe

. I guess i have everything i need. But sadly i got this error on a blank new project:


Project "E:\Desktop_ACTUAL\New Game Project\New Game Project.sln" (1:2) is building "E:\Desktop_ACTUAL\New Game Project\New Game Project.csproj" (2:2) on node 1 (default targets). C:\Users\acer2017.nuget\packages\godot.net.sdk\3.3.0\Sdk\Sdk.props(29,11): error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found. [E:\Desktop_ACTUAL\New Game Project\New Game Project.csproj] Done Building Project "E:\Desktop_ACTUAL\New Game Project\New Game Project.csproj" (default targets) -- FAILED. Done Building Project "E:\Desktop_ACTUAL\New Game Project\New Game Project.sln" (Build target(s)) -- FAILED.

Build FAILED.


I am speechless. A blank new Project cannot find the MS-NET-SDK ? But i installed it. Very confusing ... :s

Maybe try deleting the .csproj file and then having Godot generate a new one. I have found that sometimes that can help, especially when the error mentions it cannot find a specific version of the SDK.

If i remove the *.csproj it will not run: it outputs : ... file not found, bla bla. So no chance to get the project working. But i switched to "DotNET cli" and the build process works. I dont know why this works and msbuild.exe not. I even dont understand the difference between these two methods.

I am still sad, that something what is "officially described by the Godot-Dev-Team" is not working ! Really unbelievable sad.

@sledgeman said: If i remove the *.csproj it will not run: it outputs : ... file not found, bla bla. So no chance to get the project working. But i switched to "DotNET cli" and the build process works. I dont know why this works and msbuild.exe not. I even dont understand the difference between these two methods.

I am still sad, that something what is "officially described by the Godot-Dev-Team" is not working ! Really unbelievable sad.

Well, if using DotNET cli works then it's probably fine. It should mean that it's just using the MSBuild version through Visual Studio tools, if I understand the difference between the DotNet cli and Mono settings.

Ok. Yeah it seems fine with DotNet Cli. But ... why is VisualStudio Build Tools not working ? Its hard to answer because it can be a MS thing and or Godot-Devs thing (As said Godot could have a path option). Nevertheless i need to say, it could be better documented from the developer side.

It should be a windows thing. And the path is a system path variable.

@Megalomaniak , yep ... you can have a system variable. You can define it by your own ... but sometimes it dont work. Or much simpler: you can have a path definition inside Godot. Doesnt hurt anybody i would say.