是否可以将Windows 10 WDK与Visual Studio 2013集成在一起?

0xC0000022L

我需要处理Windows 10特定的驱动程序类型。获取和安装WDK 10.0.10075没问题。在安装WDK之前,我已经安装了Visual Studio 2013 Pro。

现在如何将WDK集成到Visual Studio中?我知道可以使用Visual Studio 2015 RC,但是我现在更喜欢使用Visual Studio 2013 IDE,并且Windows驱动程序示例 包含Visual Studio 2013解决方案

但是,当我打开解决方案并尝试构建它时,我得到:

1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.targets(64,5): error MSB8020: The build tools for WindowsKernelModeDriver10.0 (Platform Toolset = 'WindowsKernelModeDriver10.0') cannot be found. To build using the WindowsKernelModeDriver10.0 build tools, please install WindowsKernelModeDriver10.0 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Upgrade Solution...".
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

全文作为报价,以方便阅读:

错误MSB8020:找不到WindowsKernelModeDriver10.0的生成工具(平台工具集='WindowsKernelModeDriver10.0')。要使用WindowsKernelModeDriver10.0生成工具进行生成,请安装WindowsKernelModeDriver10.0生成工具。或者,您可以通过选择“项目”菜单或右键单击解决方案,然后选择“升级解决方案...”来升级到当前的Visual Studio工具。

毫不奇怪,我没有在解决方案的上下文菜单中看到“升级解决方案...”作为选项,也没有在主菜单的“项目”子菜单中看到它。

有没有办法让MSBuild知道Windows 10 WDK工具集,以便Visual Studio 2013可以处理它?


因此,Windows 10 WDK在内部注册了自己C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\v140(与VS 2013的v120相对,我猜有人对VS 2015使用内部版本号13.x感到迷信)。

我首先尝试分别备份C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\v140C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\v120

然后,我将文件和文件夹从合并v140v120顺便说一下,在此过程中没有文件被覆盖。

尝试再次使用此版本进行构建时,出现另一个错误:

1>C:\Program Files (x86)\Windows Kits\10\build\WindowsDriver.common.targets(178,5): error : An SDK corresponding to WDK version '' was not found. Please install the SDK before building.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

作为块引用:

错误:未找到与WDK版本“”相对应的SDK。在构建之前,请先安装SDK。

有希望。我确实还没有安装相应的SDK。因此,我去做了(Windows 10 SDK 10.0.10069)。不幸的是,错误消息在安装该SDK后仍然保持不变。

马克斯·厄勒(Max Ouellet)

在线示例应适用于VS 2015 RC。许多样本甚至已转换为通用驱动程序样本。

对于内核模式驱动程序,应该可以通过移动各种MSBuild文件并对其进行编辑来实现,这与您尝试执行的操作类似。请注意,没有任何形式的官方支持。对于用户模式驱动程序,它不太可能起作用。Windows 10 WDK依赖于匹配的SDK版本,并且由于为支持通用应用程序和驱动程序开发而进行的所有更改,因此该SDK与VS 2015紧密结合。

在MSBuild工具集中,还假设有一堆属性被定义,其中某些属性仅在使用VS 2015时定义。

请注意,您的SDK和WDK版本必须匹配。SDK 10.0.10069与WDK版本10.0.10075不匹配。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

Visual Studio通过Windows 10 Edge集成了Javascript调试

如何安装Windows 10 SDK以与Visual Studio 2017一起使用

我可以将Visual Studio 2015 C ++可再发行的DLL与我的应用程序捆绑在一起吗?

Windows 10上的Visual Studio 2013 SDK

将Smack与Android Studio项目集成在一起以进行聊天应用

Windows 10上的Visual Studio + localdb

是否可以在Visual Studio 2017中创建Windows Phone 8.1或10应用程序

Visual Studio是否需要Windows 10?

Visual Studio 2017社区将无法在Windows 10上启动

是否可以在Windows 10上的ARM(即华硕NovaGo)上安装和使用Visual Studio 2017?

如何将Spring事务管理与JDBI 3集成在一起?

我可以在Windows 10上使用Visual Studio 2008吗?

是否可以将Apple iCloud服务(例如联系人,日历)与Fedora 20集成在一起?

Visual Studio Express是否可以与Wine一起使用?

强制Visual Studio 2013将.NET 4与ASPX文件一起使用

Enterprise Library 6是否可以与Visual Studio 2013和/或2015一起使用?

适用于Windows的GitHub和Visual Studio 2013-可以一起使用吗?

Windows驱动程序工具包(WDK)8.1功能已添加到Visual Studio

将ASP.NET 5与Visual Studio 2013社区版一起使用

Visual Studio 2013在Windows 10中开始安装时挂起

Visual Studio 2013在Windows 10上可以正常运行吗?

openCV与Visual Studio 2013集成的问题

Git 2.6.3和Visual Studio 2013/2015集成

是否可以将Windows 7与Ubuntu和Windows 10 dualboot一起安装?

Visual Studio安装程序需要Windows 10 ..是否可以解决而不更新我的操作系统(Windows 7)的问题?

Mongosis SSIS数据源可以与Visual Studio 2013一起使用吗?

可以将CUDA Toolkit 7.5与VS 2013 Platform Toolkit一起在Visual Studio 2015上使用

在Windows 10上使用Visual Studio 2015时,是否可以构建和提交与Windows Phone 8.1兼容的UWP应用?

Visual Studio 如何将多个 C++ 文件编译在一起?