Is MEF or MEF2 used in the .NET Framework?

I am trying to understand MEF, and I see links to MEF and MEF 2.

This site shows that MEF2 is much faster than MEF (4.0).

I need to understand what I'm talking about when most people speak MEF.

So what is in the .NET Framework 4.5? MEF or MEF2?

+7
mef mef2
source share
1 answer

To make it even more confusing, Microsoft has released three versions of MEF using two unique names: MEF and MEF2

  • System.ComponentModel.Composition. * MEF in .NET 4 (usually called only MEF), without support for CompositionScopes, ExportFactories, etc.
  • System.ComponentModel.Composition. * MEF2 in .NET 4.5 (sometimes called MEF2 or MEF), application support, ExportFactories
  • System.Compostion. * from the independent Microsoft.Composition package a lightweight version of MEF, commonly called MEF2

The control site belongs to the lightweight MEF2 System.Compostion. * from the Microsoft.Composition package.

+8
source share

All Articles