This is an extension of the question "How to compile cshtml before runtime" Which I have implemented.
The problem I'm facing is that when I force MVC to prebuild the CSHTML, it starts trying to build all the Temp files as well.
It is finding files in paths like this:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\temp\272abf22\b789edae\App_Web_zej33svj.2.cs
Since the files are translations of the CSHTML files (to their actual CS form), and incomplete by themselves, it raises exceptions. This feels like a broken product. (which is probably why Microsoft keeps that option XML only, and not configurable through the UI.)