I have a question regarding ComposeParts() method.
I have created a catalog directory catalog:
var catalog = new DirectoryCatalog(".");
Current directory contains two DLLs with same exports. They are actually two plug-ins with same type exports.
When I call:
var container = new CompositionContainer(catalog);
I get a 'System.ComponentModel.Composition.ChangeRejectedException'.
Is the reason for this exception the fact that I have two assemblies with the same exports, and MEF cannot map them on imports?