MonoDevelop Error: Unknown MSBuild failure. Please try building the project again

MonoDevelop Error: Unknown MSBuild failure. Please try building the project again

刚刚安装了 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 和 运行 它,但不能使用 modevelop 来 运行 它。 我确实阅读了这些类似的主题,但还没有回复: MonoDevelop Failure "Unknown MSBuild Failure" on Linux; C# compile Unknown MSBuild error MonoDevelop Linux ; https://askubuntu.com/questions/73630/could-not-obtain-c-compiler-error-when-using-monodevelop

我第一次安装时也遇到了同样的问题,我假设你直接进入 file -> new-> file-> general -> emptyc# file.

相反,转到 file->new-> solution 从那里选择 Console C# project 或简单地按 ctrl + shift + N 选择 next ,并给出项目名称,默认情况下,新项目有一个简单的 hello world 程序 运行 它,这次它会工作。(它对我有用)