Have you tried using the David Ebbos razor generator, which allows you to pre-combine the razor types in a separate project? Link here . The website also has an example application.
Basically, this allows you to create views in a separate project, and then precompile them by installing a custom control for each view to point to the Razor generator. The project also includes a pre-compiled viewer that will search for you in another project.
source share