My understanding is that several assemblies are produced by the compiler for ASP.NET MVC application:
- All code in
App_Codeis compiled into its own dll. - Individual
view.cshtmlfiles located insideViewsfolder are compiled each into their own separate assembly.
In that regard a few questions:
Is there a way to produce just one assembly (preferably by merging 1 and 2 above, or at least by compiling all
cshtmlviews into one assembly)?Is there a way to control assembly name, version?
Are there any web.config settings that specifically control this on-demand compilation of cshtml files and files in the App_Code folder?
The reason I need more control is because I would like to use the InternalsVisibleTo attribute on my shred class library, so that I can use its functionality from my cshtml files (I cannot set accessibility level to public for my own reasons, so they have to remain internal, and I do not want to deal with conditional compilation either).