我可以给System.Core.dll(.NET 3.5)的引用添加到.NET 2.0的应用程序,并使用它 [英] Can I add a reference to System.Core.dll (.net 3.5) to a .net 2.0 application and use it

查看:393
本文介绍了我可以给System.Core.dll(.NET 3.5)的引用添加到.NET 2.0的应用程序,并使用它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以到System.Core.dll(.NET 3.5)的引用添加到.NET 2.0的应用程序,并用它

Can I add a reference to System.Core.dll (.net 3.5) to a .net 2.0 application and use it

我想使用的TimeZoneInfo类仅在.NET 3.5可用,通过引用System.Core.dll

I am trying to use the TimeZoneInfo class which is available in .net 3.5 only, by referencing System.Core.dll

另外,他们是在.NET 2.0
进行的TimeZoneInfo备用(或定制类)

Alternatively, is their an alternate for TimeZoneInfo in .net 2.0 (or a customised class)

推荐答案

没有你的真的不应该的。您必须安装3.5在目标机器上,否则你会碰上正在运行的程序不可预知的行为。 3.5框架,包括System.Core.dll取决于几个bug修复/添加到CLR 2.0 SP1(这是3.5框架的一部分)的功能。如果您运行针对未修补的CLR,你将主要运行未经测试的代码,很可能会打几个错误。

No you really should not. You must install 3.5 on the target machine or you will run into unpredictable behavior in the running program. The 3.5 framework including System.Core.dll depend on several bug fixes / features that were added to CLR 2.0 SP1 (this is a part of 3.5 framework). If you run against an unpatched CLR you will be essentially running untested code and will likely hit several bugs.

这篇关于我可以给System.Core.dll(.NET 3.5)的引用添加到.NET 2.0的应用程序,并使用它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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