Thursday, July 11

MEF2 in ASP MVC4

I've search the internet for the way to integrate MEF 2 with ASP.NET MVC 4 and the answer was hard to find.
Finally I found Alt.Composition.Web.Mvc (1.1.17) by nblumhardt. For detailed instructions please see his GitHub repository,

I've use MVC with MEF for a while now but I've used CodePlex bits until now.
Finally I've upgrade our web application to use .NET 4.5 and I wanted to use the new lightweight MEF features as well as application/request scope.

I hope this will answer the questions to others looking for the way to integrate MEF with MVC.