views:

114

answers:

2

The fun part is, I do have .NET 4.0 installed, as well as all GTK#. I thought maybe I installed it in the wrong order or something ridiculous, so I uninstalled and re-installed everything. I even tried installing plain old mono, and then installing monodevelop, but I still get that same error.

A: 

IIRC MonoDevelop 2.4 had a bug that prevented it targeting the final released version of .NET 4.0. The fix should be in MonoDevelop 2.4.1.

As a workaround, assuming you installed Mono 2.8 (which has 4.0 support), you can change your target runtime to Mono instead of .NET. Either

  • Change the default using the Tools -> Options menu, then the .NET Runtimes panel

or

  • Change the target of the current project using the Project->Target Runtime menu.
mhutch
Thank you so much! It finally works!
gentuba
A: 

I'm having the same problem...

I'm running Monodevelop 2.4 on Ubuntu.

Strange that it hasnt updated to version 2.4.1 cuz im using the badgerports repository.

I would like to upgrade to Monodevelop 2.4.1 as well as updating my existing Mono 2.6.7 to 2.8

This error still exists even though in Edit >> Preferences >> .Net Runtimes it shows im using Mono 2.6.7

Faizan Kazi
MonoDevelop 2.4.1 hasn't been released yet, but you don't need 2.4.1 anyway - the bug I mentioned only affects .NET, not Mono. Your problem is that Mono 2.8 hasn't yet been packaged for Debian/Ubuntu.
mhutch
I had found a shell file written by someone which installed mono 2.8 on my ubuntu by installing the sources and compiling them.
Faizan Kazi
So, it was kind of cool, but, something happened to my ubuntu install because of that... so i had to reinstall, and wonder if the mono2.8 install might have caused it :s afraid to try it since. But itd be really nice having mono2.8
Faizan Kazi