MEF是否需要.NET 4? [英] Does MEF require .NET 4?

查看:114
本文介绍了MEF是否需要.NET 4?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用Visual Studio 2010,尝试创建一个MEF应用程序。这是否需要.NET 4.0,我也可以面向.NET 2.0?

I am using Visual Studio 2010, try to create a MEF application. Does this require .NET 4.0 or can I target .NET 2.0?

推荐答案

是的,你做的:

应用需求改变   经常和软件不断   不断发展的。其结果是,这样的   应用程序往往成为单片   使得难以增加新   功能。 托管   可扩展性框架(MEF)是一个新的   在.NET Framework 4.0中库   解决了这个问题,通过简化   的扩展的应用程序设计   和组件。

Application requirements change frequently and software is constantly evolving. As a result, such applications often become monolithic making it difficult to add new functionality. The Managed Extensibility Framework (MEF) is a new library in .NET Framework 4.0 that addresses this problem by simplifying the design of extensible applications and components.

来源: HTTP://mef.$c$cplex.com/

编辑: 有关针对.NET 2.0的问题是在这里找到答案:

The question about targeting .net 2.0 is answered here:

<一个href="http://mef.$c$cplex.com/Thread/View.aspx?ThreadId=54008">http://mef.$c$cplex.com/Thread/View.aspx?ThreadId=54008

MEF不支持.NET 2.0,因为它   依赖于LINQ和Ex pression树。   目前,我们还没有一个.NET 2.0   MEF版本的计划。

MEF is not supported on .NET 2.0 as it depends on LINQ and Expression trees. Currently we do not have a .NET 2.0 version of MEF planned.

这篇关于MEF是否需要.NET 4?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆