我刚刚安装了MonoDevelop,尝试编译一个简单的“Hello World”程序。
我使用的代码:
using System;
public class HelloWorld
{
static public void Main ()
{
Console.WriteLine ("Hello Mono World");
}
}
我得到的错误是:
EmptyCSharpFile.csproj(1,1): Error: Unknown MSBuild failure. Please try building the project again (EmptyCSharpFile)
我的系统信息: Ubuntu 16.04 LTS,已更新 MonoDevelop和mono是最新安装的。 Mono JIT编译器版本为5.0.1.1 MonoDevelop版本为5.10 我可以使用mcs并运行它,但无法使用monodevelop运行它。 我阅读了这些类似的主题,但尚未得到回复: Linux上的MonoDevelop故障“未知的MSBuild故障”; C#编译Unknown MSBuild错误MonoDevelop Linux; https://askubuntu.com/questions/73630/could-not-obtain-c-compiler-error-when-using-monodevelop