Visual Studio can't detect WDK headers for Windows 10, throwing error can't detect ntddk.h header
Visual Studio can't detect WDK headers for Windows 10, throwing error can't detect ntddk.h header
显然 Visual Studio 2015、Windows Driver Windows 10 套件和 Windows [Windows 软件开发套件存在很多潜在问题=43=] 10 并不是所有的都很好地结合在一起。我遇到了这个错误,我从网上尝试过的所有故障排除都有 belly-flopped.
fatal error C1083: Cannot open include file: 'ntddk.h': No such file or directory
是否有已知的 happy-path 可以将这三个安装在一起?或其他可扩展的解决此问题的方法?
类似的问题和答案无效
这个问题似乎被搁置了,但可能是相同的 root-cause,但没有提供足够的信息:Visual Studio 2015 WDK Not Working
我不会接受 SDK 版本 hard-code 的任何答案,因为我不能保证哪个 10.x 版本将安装在所有开发者机器上,只是他们将有Win 10 DK和SDK。
还有一个 被错误地接受了,因为当前的 WSDK 没有相应的 WDK 版本可供从 Microsoft 下载。当前在线可用的 WDK 是 10.0.14393
,WSDK 是 10.0.15063.468
最后但同样重要的是,来自 MSDN 的 this solution 也无法正常工作。
Here you can find solid, proven instructions for installing WDK with VS 2015. For any issues with newer kits and VS2017, the genuine official Microsoft WDK forum 为您服务。
因此,这最终成为了需要按特定顺序发生的几件事的组合。我以前做过所有这些,但在安装和卸载一些工具包时没有按照要求的顺序进行。我不是 100% 确定这个订单是必需的。但是我确实注意到所有套件都必须在 运行 修复之前安装,即使 WDK 1703 是最后安装的套件:
- 为 Windows 10,版本 1607
安装 WDK 10.0.14393
- 为 Windows 10,版本 1703
安装 Windows SDK 10.0.15063
- 为 Windows 10,版本 1703
安装 WDK 10.0.15063
- 运行修复WDK 1703版本
10.0.15063
所有套件都可以在这里找到:https://developer.microsoft.com/en-us/windows/hardware/windows-driver-kit
显然 Visual Studio 2015、Windows Driver Windows 10 套件和 Windows [Windows 软件开发套件存在很多潜在问题=43=] 10 并不是所有的都很好地结合在一起。我遇到了这个错误,我从网上尝试过的所有故障排除都有 belly-flopped.
fatal error C1083: Cannot open include file: 'ntddk.h': No such file or directory
是否有已知的 happy-path 可以将这三个安装在一起?或其他可扩展的解决此问题的方法?
类似的问题和答案无效
这个问题似乎被搁置了,但可能是相同的 root-cause,但没有提供足够的信息:Visual Studio 2015 WDK Not Working
我不会接受
还有一个 10.0.14393
,WSDK 是 10.0.15063.468
最后但同样重要的是,来自 MSDN 的 this solution 也无法正常工作。
Here you can find solid, proven instructions for installing WDK with VS 2015. For any issues with newer kits and VS2017, the genuine official Microsoft WDK forum 为您服务。
因此,这最终成为了需要按特定顺序发生的几件事的组合。我以前做过所有这些,但在安装和卸载一些工具包时没有按照要求的顺序进行。我不是 100% 确定这个订单是必需的。但是我确实注意到所有套件都必须在 运行 修复之前安装,即使 WDK 1703 是最后安装的套件:
- 为 Windows 10,版本 1607 安装 WDK
- 为 Windows 10,版本 1703 安装 Windows SDK
- 为 Windows 10,版本 1703 安装 WDK
- 运行修复WDK 1703版本
10.0.15063
10.0.14393
10.0.15063
10.0.15063
所有套件都可以在这里找到:https://developer.microsoft.com/en-us/windows/hardware/windows-driver-kit