What happened to MEF type, “AttributedAssemblyPartCatalog”?

旧巷老猫 提交于 2019-12-23 09:07:25

问题


Many simple MEF examples (listed below) uses AttributedAssemblyPartCatalog.

  • Hosting MEF in an application on CodePlex MEF page
  • Simple Introduction to Extensible Applications with the Managed Extensions Framework by Brad Adams
  • Managed Extensibility Framework Tutorial - MEF by David Hayden

I have downloaded MEF source from CodePlex but still cannot find that type anywhere.

What happened to AttributedAssemblyPartCatalog and what is the alternative way of creating a resolver?


回答1:


They renamed it (along with the other catalogs) to a shorter identifier in drop 4 (we're up to drop 5 now). It's called AssemblyCatalog now. Similarly, DirectoryPartCatalog got renamed to DirectoryCatalog.



来源:https://stackoverflow.com/questions/732495/what-happened-to-mef-type-attributedassemblypartcatalog

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!