I use monodevelop and I get the error "framework mono / .NET 4.0 not installed" when trying to build

The interesting part: I have installed .NET 4.0, as well as all GTK #. I thought maybe I installed it in the wrong order or something funny, so I uninstalled and installed everything again. I even tried installing a plain old mono and then installing monodevelop, but I still get the same error.

+4
source share
2 answers

IIRC MonoDevelop 2.4 had a bug that prevented it from 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 (with 4.0 support), you can change the target runtime to Mono instead of .NET. Or

  • Change the default value using the Tools β†’ Options menu, then the .NET Runtimes panel

or

  • Change the goal of the current project using the menu Project-> Target Runtime.
+8
source

You can easily change the framework under which the tyour application is launched, so that MonoDevelop will work successfully by doing the following:

  • open the "Project" menu
  • select "Application Settings"
  • on the General tab, change the Target Structure to Mono / .NET x
+3
source

All Articles