Godot: Godot can't locate MSBuild

Created on 3 Feb 2019  ·  1Comment  ·  Source: godotengine/godot

Godot version:

919fa75803177d0dc8f03c16b6be1360140145e1 Mono

OS/device including version:

Ubuntu 18.10

Issue description:

Godot crashes upon opening a project with the error:

WARNING: godot_icall_BuildInstance_get_MSBuildPath: Cannot find binary for 'MSBuild (Mono)'
   At: modules/mono/editor/godotsharp_builds.cpp:157.

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

However, msbuild is installed, as I am able to build the editor with it, and can call it from the terminal:

Microsoft (R) Build Engine version 16.0.0.0 for Mono
Copyright (C) Microsoft Corporation. All rights reserved.

MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file.
bug core mono

Most helpful comment

I still get this problem on v3.1.1.stable.mono.official has it been solved?

I found that msbuild can be run using dotnet msbuild rather than msbuild.

>All comments

I still get this problem on v3.1.1.stable.mono.official has it been solved?

I found that msbuild can be run using dotnet msbuild rather than msbuild.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nunodonato picture nunodonato  ·  3Comments

blurymind picture blurymind  ·  3Comments

SleepProgger picture SleepProgger  ·  3Comments

bojidar-bg picture bojidar-bg  ·  3Comments

Zylann picture Zylann  ·  3Comments