是否.NET并排4.5工作一边与.NET 4.0? [英] Does .net 4.5 work side by side with .net 4.0?

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

问题描述

我感兴趣的安装.NET 4.5。

I am interested in installing the .NET 4.5.

不过,我听说它是​​一个in-place升级。

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

由于用户在我公司使用的是Windows XP。 <一href="http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2723735-make-net-4-5-work-on-any-os-that-supports-4-0">I不能释放使用.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的时候我code,但是,如果我安装.NET 4.5,是有东西的工作我的机器上,将不会在Windows XP计算机上运行(只具有危险性。净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,你的程序将汇编和.NET 4.0运行在XP,但.NET 4.5实现.NET 4.0中包含错误修正为好。如果你依赖于.NET框架不是越野车,而唯一可用的.​​NET框架XP的是越野车,你的程序也将经历这些错误。我有这个发生在实体框架,但可能有其他错误修正为好。

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天全站免登陆