You can mix Razor C # code with F # controllers. Perhaps this can be done in one project (by changing the web project to use F #). A simpler alternative is to create a standard C # Razor web project and a separate F # project (containing the controller model and code).
I created a Visual Studio template that allows you to do just that.
Unfortunately, the template is not yet available in the Visual Studio gallery (so you do not see it on the "Online Templates" tab in the "New Project" dialog box). There is some problem with the loading mechanism that I am trying to solve, so I hope it will appear there soon. There are also several ASP.NET MVC templates from Daniel Mohl in the Visual Studio gallery, but I'm not sure if any of them use Razor.
source share