如何使用VS2010 IDE定位CLR 2.0 [英] How to target CLR 2.0 with VS2010 IDE

查看:106
本文介绍了如何使用VS2010 IDE定位CLR 2.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的托管C ++代码是使用VS2010 IDE编译的。我已手动修改.vcxproj文件以添加< TargetFrameworkVersionv> 3.5< / TargetFrameworkVersion>在部分内< PropertyGroup Label =Globals>目标.Net 3.5框架但是当我检查编译的DLL时,它所针对的CLR版本(运行时版本)仍然是v4.0.30319。我该如何告诉VS2010编译我的托管C ++并将输出DLL定位到目标v2.0.50727?

My managed C++ code was compiled using the VS2010 IDE. I have manually modified the .vcxproj file to add <TargetFrameworkVersionv>3.5</TargetFrameworkVersion> inside the section <PropertyGroup Label="Globals"> to target the .Net 3.5 framework but when I check the compiled DLL, the CLR version (runtime version) that it is targetting is still v4.0.30319. How should I tell VS2010 to compile my managed C++ and have the "output DLL" to target v2.0.50727?

推荐答案

转到项目 - >解决方案资源管理器中的属性,并在那里设置级别。
Go to Project --> Properties in Solution Explorer, and set the level there.


这篇关于如何使用VS2010 IDE定位CLR 2.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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