Good day.
I need to be added executing assembly in CompositionContainer (MEF) without add AssemblyCatalog. Since this assembly has 20 reference on other project.
At now, I'm use next solution:
AssemblyCatalog asCatalog = new AssemblyCatalog(Assembly.GetExecutingAssembly());
AggregateCatalog agCatalog = new AggregateCatalog();
agCatalog.Catalogs.Add(asCatalog);
Thanks for help.
After watching the source code MEF, the issue resolved itself. AssemblyCatalog imports only the specified assembly.