Reputation: 6794
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?
Upvotes: 3
Views: 1142
Reputation: 28608
MvcCodeRouting supports embedded views. Also, check out this post.
Upvotes: 2
Reputation: 9584
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/
Upvotes: 1