Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I dont know whether this is considered a programming question or not, so correct me if im wrong. How can i get mono develop to compile my c# projects?

At present it wont build, and i get an error saying 'could not obtain c# compiler, c# compiler not found for mono / .net 3.5' as i understand it, the c# compiler for mono is dmcs. Calling dmcs from terminal works fine. How can i get mono develop to build correctly?

share|improve this question

you can also install the compiler for the versions

sudo apt-get install mono-gmcs
share|improve this answer

You can work around this by switching your project's runtime to .NET 4.0

share|improve this answer
Yessssssss, thank you!!! :D – MestreLion Mar 29 '13 at 10:40
Mine was set to 2.0, and I had only downloaded mcs (which compiles for 4.0. I changed properties, it worked :D – MestreLion Mar 29 '13 at 10:41

You also can stay with the previous mono/.net (such as 2.0, 3.0) by installing the respective compiler. Go to the Ubuntu Software Center, and search for "C# compiler", you will find the earlier compiler there.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.