MEF中DirectoryPartCatalog的修改
var catalog = new AttributedAssemblyPartCatalog(Assembly.GetExecutingAssembly()); var container = new CompositionContainer(catalog.CreateResolver());
DirectoryPartCatalog更名为DirectoryCatalog
真晕,都改了一年多了现在才知道,现在网上大部分的实例仍然是改名之前的老代码,新技术更新快但应用实在太慢了