使用Visual Studio 2010定位.NET 4.5? [英] Targeting .NET 4.5 with Visual Studio 2010?

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

问题描述

是否可以通过VS2010将.NET 4.5定位为目标?我昨天安装了.NET 4.0.3(并且它是目标),以便使用SqlConnection的新ConnectionID属性.然后安装.NET 4.5.但是,似乎没有VS2010目标.我的4.0.3项目 调试失败,并带有在盒子上找不到4.0.3版本,您想下载吗?".将目标更改为4.0会丢失新属性,从而产生编译时错误.

Is there any way to target .NET 4.5 with VS2010? I installed .NET 4.0.3 yesterday (and it's target) in order to use SqlConnection's new ConnectionID property. Then installed .NET 4.5. However, there seems to be no VS2010 target for it. My 4.0.3 project fails debugging with "can't find a version 4.0.3 on the box, would you like to download it?". Changing the target to 4.0 loses the new property, producing a compile-time error.

使用csc.exe或在VS2010外部运行程序都可以,但是与VS集成将是很好的选择.

Using csc.exe or running the program outside of VS2010 works fine, but having intergration with VS would be nice.

谢谢,鲍勃

推荐答案

鲍勃,不幸的是,VS 2010不支持.NET Framework 4.5.您将需要使用VS 11才能将解决方案的目标框架更改为.NET Framework 4.5.
Hi Bob, .NET framework 4.5 is not supported in VS 2010 unfortunately. You will need to use VS 11 to have the option to change the target framework of your solution to .NET framework 4.5.


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

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