Reputation: 3476
I'm starting a uni class in which we have to make a web application using webforms (sadly we are not allowed to use MVC), but we are allowed to use a VB or F#. I am wanting to use F# to write the code behind files, but I am developing on a mac, so I am using Mono. I don't have any experience using Mono, and I have very little using C# on Windows.
I installed Mono 3 beta, and the F# PowerPack.
I have experimented a bit with Xamarin Studio and got F# libraries and console apps to compile and run, but when I use the F# web application template, it will compile, but I get a 500 error when viewing any page. I have found out this error is because it doesn't know how to compile it or something.
Is there a way I can get it to work in the webforms project, or will I have to make it a library and reference it somehow? How do I go about doing either of these?
Thanks heaps for any help!
Upvotes: 4
Views: 767
Reputation: 17970
Using MonoDevelop, you can install the F# Language Binding (through the MonoDevelop Add-in Manager), after installation you should get new templates for creation of web applications (Web Forms and MVC) using F#.
References
Using the New ASP.NET MVC 4 Template in MonoDevelop
Web Stacks for F#
Upvotes: 2