可以MS .NET 4.6和Visual Studio 2010中使用 [英] Can MS .NET 4.6 be used with Visual Studio 2010

查看:578
本文介绍了可以MS .NET 4.6和Visual Studio 2010中使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们仍在使用VS 2010 SP1开发一个大型LOB ASP.NET Web应用程序。基础设施乡亲正在寻找推动.NET 4.6(和靶向包到开发者)到桌面,我有麻烦找上兼容任何与2010年VS一个引线这里说两者是不兼容,不能一起使用,你必须有VS 2012或更高版本,但我不能在话题发现任何官员。任何人都知道,如果它可以使用.NET 4.6和VS 2010 SP1的发展?

We are still using VS 2010 SP1 to develop a large scale LOB ASP.NET web application. The infrastructure folks are looking at pushing .NET 4.6 (and the targeting pack to devs) to the desktop and I am having trouble finding anything on compatibility with VS 2010. One of the leads here said the two are incompatible and cannot be used together and that you must have VS 2012 or higher but I can't find anything official on the topic. Anyone know if it is possible to use .NET 4.6 and VS 2010 SP1 for development?

推荐答案

Visual Studio 2010中的的支持4.6靶向包。当目标包推到机器时,Visual Studio 2010将无法​​看到它。

Visual Studio 2010 does not support the 4.6 targeting pack. When the targeting pack is pushed to the machine, Visual Studio 2010 will not see it.

现在,如果你想留在.NET支持的版本(这可能是为什么您的基础架构人们正在做他们正在做的),因为即使你的目标4.0,你可以保持这个实际上不是问题通过部署的 4.6 的,并在其上​​运行的4.0应用程序的支持。我们垫片4.0的行为在这种情况下,所以当你在一台机器上只有4.0的测试,可以保证应用程序将与高可信度4.6运行。

Now, this isn't actually a problem if you want to remain on a supported version of .NET (which is probably why your infrastructure folks are doing what they are doing), because even if you target 4.0, you can remain supported by deploying 4.6 and running your 4.0 application on it. We shim 4.0 behavior in this case, so when you're testing on a machine with just 4.0, you can be guaranteed that the application will run with high confidence on 4.6.

不过,我看到开发者碰到很多,是他们的目标4.0,但测试的安装4.6的机器上,然后希望能够部署到4.0,并有这只是运行。在这种情况下,有没有100%的保证,这将作为我们不垫片每一个bug修复和/或功能。这意味着你可以不小心拿起4.6的行为,并依靠它。

However, what I see devs run into a lot, is when they target 4.0, but test on a machine with 4.6 installed, then expect to be able to deploy to 4.0 and have this just run. In this case, there's not a 100% guarantee that this will work as we do not shim every single bug fix and/or feature. This means you can accidentally pick up 4.6 behavior, and rely on it.

要总结一下:


  • 如果您在4.0目标4.0,测试和部署,以4.0 / 4.6 - >我们保证,这一点也适用pretty高置信度

  • If you target 4.0, test on 4.0 and deploy to 4.0/4.6 -> We guarantee that this works with pretty high confidence.

如果您在4.6目标4.0,测试和部署,以4.6 - >我们保证,这一点也适用pretty高置信度

If you target 4.0, test on 4.6 and deploy to 4.6 -> We guarantee that this works with pretty high confidence.

如果您在4.6目标4.0,测试和部署,以4.0 - >这将在大多数情况下工作,但你可能会意外地依赖于未固定在4.0固定行为

If you target 4.0, test on 4.6 and deploy to 4.0 -> This will work in most cases, but you could accidentally depend on "fixed behaviors" that aren't fixed on 4.0.

这篇关于可以MS .NET 4.6和Visual Studio 2010中使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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