可NET 2.0组件.NET 4.0下运行? [英] Can .NET 2.0 assemblies run under .NET 4.0?
问题描述
我公司开发的.NET解决方案,包括几个组件,其中大部分是小帮手组件是针对.NET Framework 2.0版。其余的组件是MVC 3 Web应用程序,这必然针对4.0版本的.NET Framework。我的解决方案有除了.NET和MVC框架没有其他的外部依赖。
I have developed a .NET solution that consists of several assemblies, most of which are small helper assemblies that target version 2.0 of the .NET Framework. The remaining assemblies are MVC 3 Web applications, which must necessarily target version 4.0 of the .NET Framework. My solution has no other external dependencies besides the .NET and MVC Frameworks.
我的问题是:当我这个解决方案部署到客户,我必须部署.NET框架的两个版本,或者我可以只部署4.0版本?可NET 2.0组件.NET 4.0下运行?
My question is the following: When I deploy this solution to customers, do I have to deploy both versions of the .NET Framework, or can I just deploy version 4.0? Can .NET 2.0 assemblies run under .NET 4.0?
推荐答案
您只需要下载最新版本。它是向下兼容的。
You only need the latest version. It's downward compatible.
这篇关于可NET 2.0组件.NET 4.0下运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!