I am a bit confused as to what is the best option for utilizing MEF in and MVC 4 application.
Kenny, your solution seems to use the "older" version of MEF and not the lighter weight Microsoft.Composition nuget project. (unless I am completely confused and the new code is in .net 4.5??)
http://nuget.org/packages/microsoft.composition
What is gained by using the newer nuget project if any?
I currently have my project utilizing the mvc integration providing by the now out of date MefContrib.MVC project (https://github.com/MefContrib/MefContrib), which seems to be working but I am noticing a bit of overhead in production compared to my non MEF applications.
Does .net 4.5 include some of the new MEF 2 code? I find the whole MEF project(s) confusing even the home page for this project says to use the original MEF found in .net and not this project but then in the next box says to use the fully supported Microsoft.Composition which is it?
(from home page)
If I am going to start a brand new asp.net project using MVC 4, WebAPI and MEF what project should I use and what is the best current example?
Kenny, your solution seems to use the "older" version of MEF and not the lighter weight Microsoft.Composition nuget project. (unless I am completely confused and the new code is in .net 4.5??)
http://nuget.org/packages/microsoft.composition
What is gained by using the newer nuget project if any?
I currently have my project utilizing the mvc integration providing by the now out of date MefContrib.MVC project (https://github.com/MefContrib/MefContrib), which seems to be working but I am noticing a bit of overhead in production compared to my non MEF applications.
Does .net 4.5 include some of the new MEF 2 code? I find the whole MEF project(s) confusing even the home page for this project says to use the original MEF found in .net and not this project but then in the next box says to use the fully supported Microsoft.Composition which is it?
(from home page)
Important: this site hosts source code for unsupported, pre-release versions of MEF. If you want to use MEF in production, you should strongly consider using the supported versions included in the .NET Framework and Silverlight.
.NET 4.5 and Windows 8 Store apps can now install the fully-supported, lightweight Microsoft.Composition package from NuGet.
So in summary my question is:If I am going to start a brand new asp.net project using MVC 4, WebAPI and MEF what project should I use and what is the best current example?