Mic*_*ich 30 c++ directx windows-10 visual-studio-2017
下午好,
我无法弄清楚如何为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".
Run Code Online (Sandbox Code Playgroud)
我是否需要安装其中一个安装程序?我需要运行哪一个来构建和调试Visual Studio的DirectX项目?具体使用VS2017着色器调试功能.
谢谢,
编辑:在VS2017下 - 工具 - >获取工具和功能我已经检查过
使用C++进行游戏开发
并且根据我的选择
C++分析工具Windows 10 SDK(10.0.17134.0)
我正在下载16299.0,这修复了没有正确SDK的第一个错误.
但是现在我Failed Creating the Direct3D device在Debug中运行时遇到了运行时错误.我仍然可以在Release中运行示例
mag*_*981 55
错误消息显示您需要的SDK:
找不到Windows SDK版本10.0.16299.0
因此,缺少用于Windows 10 Fall Creators Update 1709的SDK,并且您下载了针对2018年4月更新的SDK(1803 Build 17134).
运行Visual Studio 2017安装程序(C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe),单击,然后在modify安装程序的各个组件选项卡中的SDK/framework下选择16299 SDK:
您可以从 Microsoft 下载所需的 Windows SDK 版本:
https://developer.microsoft.com/en-us/windows/downloads/sdk-archive/
只需安装所需的版本,构建就应该可以工作。