Issue:
I have two projects. The first named Studio and the second named Worker which is a class library. Worker project refers some third party assemblies like Ecng.Common, Ecng.Data, etc.
When i try to load Worker in Studio via MEF, MEF throws an exception:
Can't find file or assembly Ecng.Transactions
However there is no project reference in Worker for Ecng.Transactions. Worker works without it.
What do I need to do to fix this issue?
Edit 1:
var catalog = new AggregateCatalog();
foreach (var nameAndPath in robotsDirectory)
{
catalog.Catalogs.Add(new DirectoryCatalog(nameAndPath.Value));
}
var container = new CompositionContainer(catalog);
container.ComposeParts(this); // Here i have Exception