我不知道如何安装适用于 Visual Studio 2017 的 Windows 10 SDK。
我下载并运行了 Windows 10 SDK 安装程序,它显示Please find winsdksetup.exe in ....\Windows kits\10\WindowsSDK to install Windows Software Development Kit - Windows 10.0.17134.12.
当我跑步时winsdksetup.exe
,它带我经历相同的循环,它将一堆可执行安装程序下载到此目录中并显示相同的消息。
当我尝试在 VS2017 中构建 DirectX 项目时,出现错误:
MSB8036 The Windows SDK version 10.0.16299.0 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution".
我需要安装其中一个安装程序吗?我需要运行哪一个来为 Visual Studio 构建和调试 DirectX 项目?专门使用VS2017着色器调试功能。
Thanks,
编辑:
在VS2017下-工具->获取工具和功能
我检查过
使用 C++ 进行游戏开发
在可选下我有
C++ 分析工具
Windows 10 SDK (10.0.17134.0)
我正在下载 16299.0,这解决了第一个错误:没有正确的 SDK。
但现在我得到运行时错误Failed Creating the Direct3D device
当在调试中运行时。我仍然可以在发布中运行示例