I am implementing a plug-in system with MEF, and so far it is working fine. I recently ran into a problem: the main application uses the SQLite database, and now I have a plugin that also needs to access this database. When I copy a plugin to my plugin directory, mef picks it correctly, but as soon as it tries to access something using SQlite, I get a System.IO exception saying that it cannot find the sqlite SQL file from which it depends.
I also tried copying sqlite dlls to the plugin directory, but it still won't work. Should any libraries that I referenced in my main application also be available in my plugin? And even if not, should the plugin not find libraries if they are in the same directory?
Any help would be appreciated.
source share