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?
1 Answer 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.
.NETFramework 4.5but I can change it toMono/.NET 4.0and 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