运行.NET 3.5的代码在2.0 CLR [英] Running .NET 3.5 Code In 2.0 CLR

查看:195
本文介绍了运行.NET 3.5的代码在2.0 CLR的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我感到困惑这一点 - 所有运行.NET2.0

I am confused about this - I have .NET 3.5 on my machine and VS2008 - The servers all run .NET2.0

我可以编译我的机器上的代码的服务器 - 我的机器和VS2008上有.NET 3.5和目标.NET3.5和2.0 CLR仍然运行??

Can I compile code on my machine and target .NET3.5 and still run on the 2.0 CLR??

时有mtrix任何地方,突出.NET版本和CLR版本及其兼容性?

Is there a mtrix anywhere which highlights .net versions and CLR versions and their compatability?

我如何找出CLR我使用??

How do I find out what CLR i am using??

推荐答案

这是有点复杂的话题,但这里的高点。 3.5框架的两个主要部分是一组库,最显着System.Core.dll和服务包的CLR(2.0SP1)。

This is a bit of a complex topic but here are the high points. The two main parts of the 3.5 framework are a set of libraries, most notably System.Core.dll, and a service pack to the CLR (2.0SP1).

您不能安全编译兑3.5库的应用程序并将其部署到一台机器只运行2.0RTM。这将在某些情况下工作,但侥幸这样做。在3.5框架的几个功能依赖于包含在2.0SP1 bug修复。

You cannot safely compile applications against the 3.5 libraries and deploy them to a machine only running 2.0RTM. This will work in some circumstances, but it does so by sheer luck. Several features in the 3.5 framework rely on bug fixes included in 2.0SP1.

什么你可以放心地做的是使用VS2008为目标的2.0运行时。这会给你最的新的语言特性,同时允许您安全地部署到2.0RTM机器。

What you can safely do is use VS2008 to target the 2.0 runtime. This will give you most of the new language features while allowing you to safely deploy to 2.0RTM machines.

这篇关于运行.NET 3.5的代码在2.0 CLR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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