Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I am using monodevelop and I am getting a "framework mono/.NET 4.0 not installed" error when I try to build

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.

like image 687
gentuba Avatar asked Dec 21 '22 22:12

gentuba


2 Answers

you could easily change the framework under which tyour application is running to allow MonoDevelop build your's successfully by doing the following:

  • open menu "Project"
  • choose Application options
  • from "General" tab, change the "Target framework" to be "Mono / .NET x"
like image 25
Muhammad Soliman Avatar answered Mar 02 '23 01:03

Muhammad Soliman


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.
like image 129
Mikayla Hutchinson Avatar answered Mar 01 '23 23:03

Mikayla Hutchinson