[英]MonoDevelop Error: Unknown MSBuild failure. Please try building the project again
Just installed MonoDevelop and I tried to compile a simple "Hello World". 刚刚安装了MonoDevelop,我尝试编译一个简单的“Hello World”。 Code I used: 我使用的代码:
using System;
public class HelloWorld
{
static public void Main ()
{
Console.WriteLine ("Hello Mono World");
}
}
The error that I get is : 我得到的错误是:
EmptyCSharpFile.csproj(1,1): Error: Unknown MSBuild failure. Please try building the project again (EmptyCSharpFile)
My system info: Ubuntu 16.04 LTS , updated The MonoDevelop and mono are freshly installed. 我的系统信息:Ubuntu 16.04 LTS,已更新MonoDevelop和mono已全新安装。 Mono JIT compiler version 5.0.1.1 MonoDevelop Version 5.10 I can use mcs and run it but can't use monodevelop to run it. Mono JIT编译器版本5.0.1.1 MonoDevelop版本5.10我可以使用mcs并运行它但不能使用monodevelop来运行它。 I did read these similar topics but no response yet: MonoDevelop Failure "Unknown MSBuild Failure" on Linux ; 我确实读过这些类似的主题,但还没有回复: Linux上的MonoDevelop故障“未知的MSBuild失败” ; C# compile Unknown MSBuild error MonoDevelop Linux ; C#编译未知的MSBuild错误MonoDevelop Linux ; https://askubuntu.com/questions/73630/could-not-obtain-c-compiler-error-when-using-monodevelop https://askubuntu.com/questions/73630/could-not-obtain-c-compiler-error-when-using-monodevelop
I too had the same problem when I first installed it , I assume you went straight to file -> new-> file-> general -> emptyc# file. 我第一次安装它时也遇到了同样的问题,我假设你直接进入文件 - > new-> file-> general - > emptyc #file。
Instead of that, go to file->new-> solution from there choose Console C# project or simply press ctrl + shift + N choose next ,and give project name, by default the new project has a simple hello world program run it, this time it will work.(it worked for me) 而不是那样,转到file-> new->解决方案,从那里选择Console C#项目或者只需按ctrl + shift + N选择next,并给出项目名称,默认情况下新项目有一个简单的hello world程序运行它,这个它会起作用的时间。(它对我有用)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.