I have a small class that performs a data import from a client. Each client has their own version of this class, so it is an MEF plugged in part:
[Export(typeof(IXTImportEmployeePrePlugin))]
public class PreEmployeeImport : XTImportEmployeePrePlugin
Yet when I try and import the plugin, like so:
var catalog = new DirectoryCatalog(AppDomain.CurrentDomain.BaseDirectory + PluginDir);
The resultant catalog has 1 file and 0 parts, yet the part is in the file. I've checked with dotPeek.
What could cause the host to not see the exported part? Another tiny test host I wrote also imports the plugin assembly and it sees the part fine.