问题
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