简体   繁体   English

将驱动程序项目从VS2013迁移到VS2015社区

[英]Migrating driver project from VS2013 to VS2015 community

Long time reader first time poster here. 长时间读者第一次在这里发布海报。

I'm a Linux developer trying to get started on Windows development in my new job. 我是一名Linux开发人员,试图在我的新工作中开始使用Windows开发。 I knew it would not be trivial but the first thing I'm trying to do is complete and integrate a netvmini port driver (started by a co-op student) into one of their C++ apps. 我知道这不会是微不足道的,但我要做的第一件事是完成并将netvmini端口驱动程序(由合作学生开始)集成到他们的一个C ++应用程序中。 I am struggling to get the build environment going... 我正在努力让构建环境继续下去......

The project was started in Visual Studio 2013 with a Windows 7 target. 该项目是在带有Windows 7目标的Visual Studio 2013中启动的。 When I now open it in Visual Studio 2015 and try to build the solution I get: 当我现在在Visual Studio 2015中打开它并尝试构建我得到的解决方案时:

"Unknown or unsupported property value Win7 for TargetVersion " “TargetVersion的未知或不受支持的属性值Win7

for each project. 对于每个项目。 This also happens if I set the configuration to Win8 (both release and debug). 如果我将配置设置为Win8(发布和调试),也会发生这种情况。 If I set it to Win 8.1 I get: 如果我将它设置为Win 8.1,我得到:

"An SDK corresponding to WDK version '8.1' was not found. Please install the SDK before building" “未找到与WDK版本'8.1'对应的SDK。请在构建之前安装SDK”

I have installed every WDK and SDK I can lay my hands on from Windows 7 to Windows 10 using both the web and the VS2015 installer. 我已经安装了每个WDK和SDK,我可以使用Web和VS2015安装程序从Windows 7到Windows 10。 I have even installed Visual Studio 2013 again but I can't even seem to get the WDK to integrate with that. 我甚至再次安装了Visual Studio 2013,但我似乎无法让WDK与之集成。

The end goal here is to be able to build this (and hopefully debug remotely in kernel mode) from my Windows 10/VS2015 workstation for targets from Windows 7-10. 这里的最终目标是能够从我的Windows 10 / VS2015工作站为Windows 7-10的目标构建这个(并希望在内核模式下远程调试)。 Any advice or documentation that details how to integrate new build platforms into VS would be helpful (all the MS documentation just tells me what I can do if I install this or that, but not HOW to do it) 任何详细说明如何将新构建平台集成到VS中的建议或文档都会有所帮助(所有MS文档只告诉我如果安装这个或那个我可以做什么,但不是如何做到这一点)

I discovered that the installer doesn't install the windows 10 SDK by default. 我发现安装程序默认不安装Windows 10 SDK。 So all the installing of other SDK's was useless. 所以其他SDK的所有安装都没用。 I Also found out that by installing the Win 10 SDK through the VS 2015 installer it integrates and allows me to build for targets back to windows 7 in VS 2015. 我还发现,通过VS 2015安装程序安装Win 10 SDK 它集成并允许我在VS 2015中构建目标回到Windows 7。

I also had the same problem after running the Project Upgrade tool. 运行项目升级工具后,我也遇到了同样的问题。

I discovered when making new configurations that "Win7" and "Win8" TargetVersion are now "Windows7" and "Windows8". 我发现在进行新配置时,“Win7”和“Win8”TargetVersion现在是“Windows7”和“Windows8”。

The upgrade tool does not make that change for you but I was able to manually edit my upgraded project with those changes and got it to build for all targets. 升级工具不会为您进行更改,但我能够使用这些更改手动编辑已升级的项目并使其为所有目标构建。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM