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 :

在Visual Studio 2010中,当安装了Windows SDK 7.1但$(WindowsSdkDir)宏仍指向V7.0a时,可通过更改解决方案属性来指定使用Windows SDK 7.1。步骤包括打开解决方案,右键选择属性,配置属性,选择所有配置,然后在平台工具集中选择Windows7.1SDK。
最低0.47元/天 解锁文章
1万+

被折叠的 条评论
为什么被折叠?



