问题
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