I want to ship pre-compiled views. I’ve seen a few questions regarding specifying
Changing the following in the csproj
<MvcBuildViews>true</MvcBuildViews>.
and
and modifying the web.config (since i am using entityframework)
<compilation debug="true" targetFramework="4.0">
<buildProviders>
<remove extension=".edmx"/>
</buildProviders>
</compilation>
it now takes longer to compile which i was expecting however im not sure if it is working correctly
- can i presume i am right in saying that if configured correctly it should actually build the views into the binary rather than just doing a precompilation validation?
- if true then should i prevent the webdeployment from shipping the cshtmls? will the presence of them onsite cause a recompile?
- if so this should result in a faster start time for deployed mvc applications? as they don’t need to compile the views?
- should I add false to the csproj as well? i saw an article which suggested i should change it from true to false, but it isn’t present in my csproj.
Cheers
Tim
RazorGenerator seemed to be the only option to my original question which was to ship compiled views as binaries.