I have an MVC application that is using MEF for the controllers, all working fine.
http://bryanavery.co.uk/post/2012/03/12/Using-MEF-in-MVC-3.aspx
But I’m now wanting to take the next step and move my Views to be embedded in the DLL’s and get MEF to inject the Views for MVC.
I have a collection of DLL’s that will hold the different Views required for the application.
I’m using Razor, not that that should make much difference, anyone managed to do this?
perhaps you want to look at portable areas, here’s a good write up
http://lostechies.com/erichexter/2009/11/01/asp-net-mvc-portable-areas-via-mvccontrib/
here’s mvccontrib
http://mvccontrib.codeplex.com/