MEF on CodePlex


We have just released an update to MEF. You can get it at

The changes are quite significant:

1.       The preview ships with sources under a very permissive license (Ms-LPL).

2.       We now support constructor injection. Feature that the community asked for.

3.       We completely redesigned MEF’s extensibility points. The extensibility points are designed to support writing custom providers of composition data. For example, out of the box MEF requires composable parts to be attributed with attributes that provide metadata describing the composition. We got lots of feedback that this is not acceptable in many scenarios. The new extensibility points make it easier to extend MEF to externalize the metadata (to an XML file for example). Note, that the changes are just the first step toward the goal of making the extensibility easy and powerful. We will most probably keep making improvements in this space in the future, so feedback on the new extensibility points would be more then welcome.

4.       We significantly cleaned up the container APIs. But as above, there is more clean up to come in the future.


Comments (7)
  1. Congratulations!

    Will you (or someone from the team) be doing some blogposts with samples about the improvements (ScottGu-style)?

  2. El viernes pasado apareció la primera entrega del Microsoft Extensibility Framework (en codeplex) Es

  3. The Managed Extensibility Framework (MEF) is a new library in .NET that enables greater reuse of applications

  4. Hi Krzysztof,

    With the current license the MEF is not usable with Silverlight on other platforms – will you change this in the future?

    Best regards,

    Lars Wilhelmsen

  5. Krzysztof, you can find some walkthrough samples on the codeplex site. The set of samples is not complete yet, the basic scenarios should be covered. Ping me if you cannot find what you are looking for.

    Lars, we are looking into the license issue now. Glenn Block should have an update on this in a couple of days.

  6. After a couple of weeks of crappy Internet connections I finally managed to connect via my cell phone

Comments are closed.

Skip to main content