Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

3 Answers

you can also install the compiler for the versions

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

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
add comment

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
add comment

Your Answer

 
discard

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.