This project has moved. For the latest updates, please go here.

External Extensions

Jul 8, 2009 at 2:50 PM

How do you get MEF to recognized a .dll that is not built in the solution? For instance if I have a .dll file just sitting in the debug/projects folder how can I get it to pick that up as a plugin and use it. If I create a class in the project it will but it doesnt work if its not in the project. Any ideas?

Jul 8, 2009 at 2:57 PM

Nevermind I got it. If anyone else has this question here is the answer:

var catalog = new DirectoryCatalog("Extensions");

Jul 8, 2009 at 7:38 PM

Be sure that the directory exists before composing with the catalog, otherwise you will get an exception.