[MonoDevelop] Setup .NET 4.5.1 app using MonoDevelop 4.0.12

Dan Liew dan at su-root.co.uk
Mon Feb 9 11:11:21 UTC 2015


> I am trying to set up a simple test project that uses the Naked Objects
> Framework, which, I just found out, currently requires to target the .NET
> 4.5.1 framework.
> The following software is currently installed on my machine running Lubuntu
> 14.04:
> - Mono JIT compiler version 3.2.8
> - MonoDevelop v4.0.12

By the way you can grab much newer builds of mono and monodevelop by following




> I created an ASP.NET MVC 3 project.
> For some reason I can't figure out how to set the .NET target framework, or
> even see which framework I'm targeting. Searching for an answer I found out
> that this option could be found by right-clicking on the solution, choose
> "options", on the "general" tab, nested under "build". However, in contrast
> to the screenshot I've seen, the only option I get is to set the output
> directory.
> Then, if I would find a way to choose a .NET target framework, I still would
> have to install 4.5.1.

I'm using Monodevelop 5.7.1 which is considerably newer than what
you're using but for this version, the .NET target framework version
is set for each project and not on the solution. So I can can right
click on a project in my solution, select "options" and then under
"Build > General" I can pick the target framework.

> "$ ls /usr/lib/mono/" returns directories 2.0, 3.5, 4.0, and 4.5.
> BTW, building an "empty" ASP.NET MVC project throws a FileNotFOundException,
> since System.Web.Helpers seems to be missing from my default installation.

Debian (and hence Ubuntu) likes splitting projects like mono into many
separate packages so you might have forgotten to install the one for
web helpers (if there is one). I think the "mono-complete" package
will install everything.

Hope that helps.


More information about the Monodevelop-list mailing list