是否可以通过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?
发布评论