8

I followed the instructions here for installing Monodevelop with F# support on Ubuntu, however when I open Monodevelop and try to compile a simple F# program I get the message:

Error: Framework '.NETFramework 4.5' not installed.

If I manually compile on the command line using the same compiler Monodevelop is using (/usr/bin/fsharpc) the file compiles and produces an executable that runs just fine. Why won't the project compile in Monodevelop and is there a way to fix it?

McGarnagle
103k31 gold badges235 silver badges264 bronze badges
asked Dec 19, 2012 at 19:44
4
  • 2
    Have you checked what framework is selected in the project options->Build->General? Commented Dec 19, 2012 at 20:41
  • That looks like it's probably causing the problem. It's set by default to .NETFramework 4.5 but I can change it to Mono/.NET 4.0 and then it compiles and runs. I still get a warning about the target framework but not enough to stop it from compiling an running. Thank you @Jester Commented Dec 19, 2012 at 21:00
  • 1
    Side note: framework 4.5 is available with Mono if you install newer version, that is 3.0 or higher. Commented Dec 21, 2012 at 10:58
  • 1
    @Jester: Looks like an answer to me... Commented Jun 27, 2013 at 9:29

1 Answer 1

1

Officially (as of 2013) MonoDevelop/XamarinStudio doesn't support F# yet. So the F# support is not officially supported by Xamarin.

However you can use Visual Studio 2012 (or SharpDevelop) to build F# projects on Windows (targeting .NET Framework 3.0), and then move the compiled binary to Linux.

I've tried this, and this solution is working.

answered Jul 23, 2013 at 13:43
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.