.net 4.5 是否与 .net 4.0 并行工作? [英] Does .net 4.5 work side by side with .net 4.0?

查看:46
本文介绍了.net 4.5 是否与 .net 4.0 并行工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有兴趣安装 .NET 4.5.

I am interested in installing the .NET 4.5.

但我听说这是就地升级.

But I have heard that it is an In-Place upgrade.

因为我公司的用户使用 Windows XP.我无法发布任何使用 .NET 4.5 的客户端应用程序.

Since the users at my company uses Windows XP. I can't release any client side apps that use .NET 4.5.

我知道我在编码时可以定位 .net 4.0,但是,如果我安装 .net 4.5,是否存在在我的机器上运行的东西在 Windows XP 机器上无法运行的风险(只有 .net 4.0)?

I know I can target .net 4.0 when I code, but, if I install .net 4.5, is there risk of things working on my machine that will not work on a Windows XP machine (that only has .net 4.0)?

(顺便说一下,我看了一下,没看到有人问过这个问题.如果有人问过,请指点我,我会尽量删除这个.)

(By the way, I looked but did not see this question asked. If it has been asked, please point me to it and I will try to delete this one.)

推荐答案

是的,存在您描述的那种风险..NET 4.0 接口没有改变,所以如果你的目标是 .NET 4.0,你的程序将在 XP 和 .NET 4.0 上编译和运行,但是 .NET 4.0 的 .NET 4.5 实现也包含错误修正.如果您依赖 .NET Framework 没有错误,并且唯一可用的 XP 版 .NET Framework 有错误,那么您的程序将会遇到这些错误.我在 Entity Framework 上遇到过这种情况,但也可能有其他错误修复.

Yes, there are risks of the sort you describe. The .NET 4.0 interface is unchanged, so if you target .NET 4.0, your program will compile and run on XP with .NET 4.0, but the .NET 4.5 implementation of .NET 4.0 contains bugfixes as well. If you rely on .NET Framework not being buggy, and the only available .NET Framework for XP is buggy, your program is going to experience those bugs. I've had this happen with Entity Framework, but there could be other bug fixes as well.

这篇关于.net 4.5 是否与 .net 4.0 并行工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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