How can I make my views in my MVC3 Web project be compiled into my project assembly as defined in the project properties? E.g. I don’t want them to be generated to a dynamic/random assembly.
The reason for this is that the views reference internal classes in a referenced library, therefore, the referenced library needs to include the MVC3 project’s assembly in its assembly info.
I believe this is a bit more complicated than one would hope but is possible (at least for compiling into another dll outside of the main assembly)
See:
http://www.chrisvandesteeg.nl/2010/11/22/embedding-pre-compiled-razor-views-in-your-dll/
Including Views in a Class Library