F# and C# Web Application template by Daniel Mohl that produces a ASP.NET MVC 4 solution (ASPX or Razor View Engine). Note: You need to have ASP.NET MVC4 installed (see http://www.asp.net/mvc/mvc4).
There seems to be an issue in FsCsMvc41WebApp.fsproj, as it has a GAC reference to MVC:
<Reference Include="System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
Instead, it needs to have a NuGet reference, as in FsCsMvc41Web.csproj:
<Reference Include="System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<Private>True</Private>
<HintPath>..\..\packages\Microsoft.AspNet.Mvc.4.0.20710.0\lib\net40\System.Web.Mvc.dll</HintPath>
</Reference>
The causes the build to break when MVC4 is not in the GAC. See this thread for reference: https://github.com/projectkudu/kudu/issues/137
Hmmm, along the same line but not quite the same: the fsproj has a reference to ..\..\packages\System.Net.Http.2.0.20710.0, but it doesn't look like that NuGet package actually gets installed. Same for the other System.Net.Http.* packages.
Also, interestingly, the F# project doesn't have a packages.config at all, but seems to rely on the packages that came with the C# proj.
I believe that I've fixed the issue, but it will take some time to fully test. I hope to release it within the next week. Thanks for the great feedback!
I can't seem to get this template to work. I got VS 2010 Pro and have installed ASP.NET MVC 4 as instructed yet any attempt to start a new project fails.
Sigh. I just found out why. The web install of ASP.NET had failed silently to update my VS 2010 install properly. The downloadable installer did work though so now I'm golden :)
It should show up under Visual F# | ASPNET with the name "F# and C# Web Application (ASP.NET MVC 4)". Check the installed extensions (Tools | Extension Manager...) and verify that this extension is enabled.