使用Visual Studio 2010定位.NET 4.5?

编程入门 行业动态 更新时间:2024-10-07 15:26:46
本文介绍了使用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.5with 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 debuggingwith "can't find a version 4.0.3 on the box, would youlike 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?

本文发布于:2023-11-12 14:30:43,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1581748.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Studio   Visual   NET

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!