MonoDevelop Failure “Unknown MSBuild Failure” on Linux

﹥>﹥吖頭↗ 提交于 2019-12-21 21:38:59

问题


I just installed MonoDevelop on my Ubuntu machine, and attemtepted to run a hello world, just to test it out:

using System;

public class HelloWorld
{
    static public void Main ()
    {
        Console.WriteLine ("Hello Mono World");
    }
}

...but when building it gives an "Unknown MSBuild failure" error

I have tested Mono before using MonoDevelop and verified that it works.


回答1:


This is most likely due to an error or errors during compilation, which oddly enough, MonoDevelop is not telling you.

Assuming you have mono itself installed, open a terminal and compile from there(source):

mcs HelloWorld.cs



回答2:


I have had similar issue with a project that used to work - it seems error is in the package NUnit, however I have not yet found a solution for it - have a look at your packages, perhaps you find your issue there



来源:https://stackoverflow.com/questions/36980702/monodevelop-failure-unknown-msbuild-failure-on-linux

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!