visual studio 2010 之二 修改WindowsSdkDir宏

在Visual Studio 2010中,当安装了Windows SDK 7.1但$(WindowsSdkDir)宏仍指向V7.0a时,可通过更改解决方案属性来指定使用Windows SDK 7.1。步骤包括打开解决方案,右键选择属性,配置属性,选择所有配置,然后在平台工具集中选择Windows7.1SDK。
摘要由CSDN通过智能技术生成

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 SD

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值