简体   繁体   English

MonoDevelop错误:未知的MSBuild失败。 请再次尝试构建项目

[英]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.

相关问题 Linux 上的 MonoDevelop 失败“未知的 MSBuild 失败” - MonoDevelop Failure "Unknown MSBuild Failure" on Linux 尝试并捕获错误“无法连接到数据库,请再试一次” - Try and catch Error “Unable to connect to DB please try again” Facebook随机错误“发生了错误。 请稍后再试” - Facebook random error “An error occurred. Please try again later” MSBuild建筑项目参考 - MSBuild building project references 尝试恢复包时出错。 请再试一遍 - An error occurred while trying to restore packages. Please try again 以编程方式构建msbuild 15项目 - Building msbuild 15 project programmatically outlook 可操作 email - 远程端点返回错误 (http 401)。 请稍后再试 - outlook actionable email - the remote endpoint returned an error (http 401). please try again later 我面临“您的登录尝试未成功”的问题,请重试。 实现自定义成员身份时出错 - I am facing “Your login attempt was not successful” Please try again. error while implementing custom membership MSBuild在缺少的项目文件上强制编译失败 - MSBuild force compile failure on missing project files 使用MonoDevelop在Linux上构建并运行VS2005项目? - Building and running VS2005 project on linux with MonoDevelop?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM