本文介绍了是将MEF还是MEF2烘焙到.NET Framework中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图理解MEF,并且看到了对MEF和MEF 2的引用.
I am trying to understand MEF and I am seeing references to MEF and MEF 2.
此网站列出了MEF2比运行速度快得多MEF(4.0).
This site lists MEF2 as being much faster than MEF (4.0).
当大多数人说MEF时,我需要了解我在说什么.
I need to understand what I am talking about when most people say MEF.
.NET Framework 4.5中的哪个?是MEF还是MEF2?
推荐答案
更令人困惑的是,Microsoft使用仅两个唯一的名称发布了三个版本的MEF:MEF和MEF2
Well to make it even more confusing Microsoft released three versions of MEF using two only unique names: MEF and MEF2
- System.ComponentModel.Composition.* .NET 4中的MEF(通常仅称为MEF),不支持CompositionScopes,ExportFactories等
- System.ComponentModel.Composition.* .NET 4.5中的MEF2(有时称为MEF2或MEF),支持组合范围,ExportFactories
- System.Compostion.*(来自独立软件包Microsoft.Comof的轻量级版本的MEF,通常称为MEF2 )
基准站点引用Microsoft.Composition软件包中的轻量级MEF2 System.Compostion.*.
The benchmark site refers to lightweight MEF2 System.Compostion.* from Microsoft.Composition package.
这篇关于是将MEF还是MEF2烘焙到.NET Framework中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!