I've used MEF before, but am having problems now with the newer implementation. I'm exporting objects inheriting from a base class, that has the [InheritedExport] attribute, and am trying to get them imported.
Before, I would just have an array property with [ImportMany(typeof(mytype))], and use CompositionInitializer.SatisfyImports(this) to get the imports to work, but now I have two problems:
1) The exports are in a different, referenced assembly; 2) CompositionInitializer doesn't seem to exist in the newer MEF in the 4.5 framework.
I'm trying to create an AggregateCatalog to solve problem #1, but have no idea where to go from here.
In the end, I'm trying to import a collection that can be used by the entire WPF app, if anyone can give me any assistance in suggesting an overall solution.