Hi,
I have a solution with the following structure:
Solution
Main Exe
Utilities
When I use MEF within the Utilities project I find that neither of the following MEF catalogues pick up types held within the Main Exe
catalog.Catalogs.Add(new AssemblyCatalog(Assembly.GetExecutingAssembly()));
catalog.Catalogs.Add(new DirectoryCatalog(Path.GetFullPath(AppDomain.CurrentDomain.BaseDirectory)));
i assume the first fails as its being called within the utilities project, and that the second fails since the types in the main project are stored in an EXE and not a DLL...
what is the correct way to get a Mef catalogue which finds all types in all the projects of a solution?