简体   繁体   中英

Using F# with ASP.NET Webforms on Mono

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!

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#

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM