标签: c# c#-4.0 error-handling mef
我正在尝试使用MEF,但是,我注意到如果当前使用的目录中存在具有错误接口的.dll,它将崩溃。有没有办法纠正/避免这个问题,除了简单地只允许插件文件夹中存在正确的.dll?
修改
错误是: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.