简体   繁体   中英

Prism.Mef deprecated

We have an application using Prism 4 with MEF. We'd like to migrate to the latest Prism 8, but I see that Prism.Mef is 6.3. Before we make plans, I'd like to know what the Prism roadmap is. Ie should we migrate from MEF to Unity or DryIoc, and which is the best choice?

This depends what you want to do. MEF is a plugin framework and Unity is a dependency injection container. They do different things - depending on what you use MEF for, you cannot do that with Unity.

If you only (ab)use MEF as dependency injection container emulator, migration is easy. If you use MEF as plugin framework, you should keep it for that, because it's perfectly fine for that. If you do both, you can migrate the dependency injection part to Unity and keep MEF for your plugin system.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM