2

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.

Tr1boon
  • 21
  • 6
  • what version of Mono? what version of MonoDevelop? what version of Ubuntu? how did you install Mono and MonoDevelop? thanks – knocte May 03 '16 at 04:22
  • Mono v4.2.3, MonoDevelop v5.10 and Ubuntu 16.04. Installed both Mono and MonoDevelop via apt-get. Sorry for not providing that info initially – Tr1boon May 04 '16 at 07:04
  • can you now add a screenshot of the problem? – knocte May 04 '16 at 07:35
  • There you go: http://pasteboard.co/Oz643zU.png – Tr1boon May 10 '16 at 09:23
  • can you run monodevelop from the command line, and, build your project again? maybe you get more information about the build failure in the console – knocte May 12 '16 at 11:47

2 Answers2

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
Community
  • 1
  • 1
lamino
  • 132
  • 1
  • 9
0

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

serup
  • 3,676
  • 2
  • 30
  • 34