I use MEF to add plugins to our DAL, which is used by our WebApp. This works fine, but when our service level refers to DAL, it searches for plugins in \ ServiceLayer \ Plugins \ rather than \ WebSite \ Plugins \ (which makes sense if we use a relative path. {DirectoryCatalog (Path = "plugins /") }.
The problem is that we use an absolute path that it refuses to load plugins from SL and DAL, which, I believe, is due to the fact that the path is not within the same directory or subdirectory of the application, loading plugins (?). How can I get them to load plugins from the same folder?
thanks
source share