Visual Studio 2010 中缺少 Windows 8 SDK 平台工具集 [英] Windows 8 SDK Platform Toolset missing in Visual Studio 2010

查看:36
本文介绍了Visual Studio 2010 中缺少 Windows 8 SDK 平台工具集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在两台不同的机器上安装了 .NET framework 4.5、Windows 8 SDK 和 Windows 8 DDK(一台在家里由我管理,一台在工作中最初由 IT 设置)都已经安装了 Visual Studio 2010 Professional SP1,并且都运行 Window 7 Professional.

I just installed .NET framework 4.5, the Windows 8 SDK, and the Windows 8 DDK on 2 different machines (one at home managed by me, one at work originally setup by IT) both with Visual Studio 2010 Professional SP1 already installed, and both running Window 7 Professional.

我在 Windows XP 中有一个旧的 C++/Win32 应用程序,它同时使用了 Windows SDK 和 DDK.我针对 Windows 7 和 Visual Studio 2010 项目设置更新了它.但是,它不会构建,因为某些 SDK/DDK 包含和库文件是新的,并且在 Visual Studio 中平台工具集设置为v100"时无法找到它们.

I had an old C++/Win32 application in Windows XP that used both the Windows SDK and DDK. I updated it for Windows 7 and Visual Studio 2010 project settings. However, it would not build because some of the SDK/DDK include and library files are new, and it couldn't find them with Platform Toolset set to "v100" in Visual Studio.

手动将 Include 和 Lib 文件夹添加到项目中,使其能够正确构建和运行.

Manually adding the Include and Lib folders to the project made it build and run correctly.

有什么方法可以将新安装的 SDK 和 DDK 添加到 Visual Studio 2010 的平台工具集"列表中?我认为它应该自动执行此操作,但是在安装和重新启动后,我使用的任何机器都没有在列表中.

Is there some way that I can add the newly installed SDK and DDK to Visual Studio 2010's "Platform Toolset" list? I thought it was supposed to do this automatically, but neither of the machines I use have it in their list after install and reboot.

推荐答案

经过一番研究,我终于找到了解决方案.看起来它不能通过任何简单的方法添加到平台工具集",但至少您不必在要使用 API 的每个项目上添加路径.这对我有用,并允许我构建 Microsoft 为 VS2012 编写的USBView 示例应用程序".Microsoft 推荐的方式(来自 Microsoft Visual C++ Team 官方博客)是:

After researching this quite a bit, I finally found a solution. It doesn't look like it can be added to "Platform Toolset" via any simple method, but at least you don't have to add the paths on every single project you want to use the API. This worked for me, and allowed me to build Microsoft's "USBView sample application" written for VS2012. The way Microsoft recommends (from the official Microsoft Visual C++ Team blog) is:

对于单个项目:
http://blogs.msdn.com/b/vcblog/archive/2012/03/25/10287354.aspx
这似乎也适用于最终的 SDK 版本.

For a single project:
http://blogs.msdn.com/b/vcblog/archive/2012/03/25/10287354.aspx
This seems to work with the final SDK release as well.

要在多个项目中应用这些设置:http://blogs.msdn.com/b/vcblog/archive/2012/11/23/using-the-windows-8-sdk-with-visual-studio-2010-configuring-multiple-projects.aspx

To apply those settings across multiple projects: http://blogs.msdn.com/b/vcblog/archive/2012/11/23/using-the-windows-8-sdk-with-visual-studio-2010-configuring-multiple-projects.aspx

这篇关于Visual Studio 2010 中缺少 Windows 8 SDK 平台工具集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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