I would like to instantiate multiple instances of multiple plugins that implement a single interface within my application and from the research I've done it requires the usage of an ExportFactoryProvider.
I am using .Net 4.5 and thought support for all things MEF were now included, but I cannot find any such class in the "System.ComponentModel.Composition" namespace or any other for that matter.
I downloaded a ported Desktop version "Microsoft.ComponentModel.Composition.Initialization.Desktop.dll", but when I add a reference to that assembly it complains that "ExportFactory" exists in both "Microsoft.ComponentModel.Composition.Initialization.Desktop.dll" and "System.ComponentModel.Composition".
Can someone please provide some direction and/or some sample code that achieves what I am going for (loading multiple instances of multiple plugins that implement a single interface)?
Thank you