.Net 4.0: Configuring MEF with Linq to Xml

added by alexb
1/15/2010 3:41:25 AM


A much heard criticism of MEF is that the exports are configured with attributes, so if the exports need to be changed, recompilation of the application is required. In this post I'll show how to extend MEF using Linq to XML in such a way, that the exports can be configured in an external configuration file and the application no longer needs to be recompiled when the exports change.