visual studio 2010 之二 修改WindowsSdkDir宏

visual studio 2010 之二 修改WindowsSdkDir宏
2010年12月11日
  problem: the $(WindowsSdkDir) macro in VS2010 remains V7.0a 现在是当你安装了sdk7.1时,而 windowssdkdir宏依然是v7.0a,怎么办呢? 当然将新的目录包含进去不久好了吗?
  这样当然可以,但是项目往往是集体在做,大家的安装目录不一定在同一个地方,潜在的会造成一定的问题。
  如下就是一个更好的解决办法(针对您安装windowssdk 7.1版本哦,否则就不用看了, 当然,它还适用于visual studio2008哦)
  如下是引用,可以直接看1,2,3,4,5,6步骤的。
  If you have a version of Visual Studio 2010 installed (including Express version that I use) with Windows 7.1 SDK, you can actually set in the Solution Explorer of one of your opened solution which platform toolset you want to use. Once you've selected "Windows SDK 7.1", the macro $(WindowsSdkDir) will be updated. For more information, read the "Samples Reference" of Windows SDK (you should see the shortcut in Programs> Microsoft Windows SDK 7.1) which contains a paragraph about : How To: Using the Platform Toolset With Visual Studio 2010 : " Visual Studio 2010 users can make use of the new Native Multitargeting functionality of the Platform Toolset to target the Windows SDK v7.1 components. 1. Start Visual Studio 2010 2. In the Visual Studio IDE, open a solution file (*.sln) 3. In Solution Explorer, right click the solution file and select Properties 4. Select Configuration Properties, General from the list in the left pane 5. Select All Configurations in the Configuration dropdown 6. Select Windows7.1SDK in the Platform Toolset option in the right pane under the General category. 7. Click the Ok button " The Windows SDK Configuration Tool shipped with the SDK is apparently designed to work for Visual Studio 2005 or 2008, not 2010.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值