MEF and MVC 3 - how to load embedded views dynamically from mef container?
问题 I'm building an MVC 3 application where MEF is used. The main idea is to have plug-in mechanism where models, controllers and views are loaded dynamically during runtime from mef container. Each plugin/module consists of two assemblies: Module1.Data.dll (contains definitions of models) Module1.Web.dll (contains controllers and views) and are put in the Plugins directory inside web application bin: WebApp/Bin/Plugins/Module1.Data.dll WebApp/Bin/Plugins/Module1.Web.dll WebApp/Bin/Plugins