Strongly typed Razor views in dynamically loaded assembly don't compile at runtime
问题 I have a MVC3 Area in an assembly that is dynamically loaded with MEF. If I use the Webforms view engine with strongly typed views, everything works fine. If I use the Razor view engine with a dynamic model, it works fine too. But if I use a strongly typed Razor view , the view compilation fail at runtime. The problem is that the dynamically loaded assembly is not in the list of referenced assemblies passed to the C# compiler. The generated C# code looks like this: namespace ASP { using