Windows 10 如何脱机安装适用于Windows 10的D3D11 SDK层

Windows 10 如何脱机安装适用于Windows 10的D3D11 SDK层,windows-10,direct3d,direct3d11,Windows 10,Direct3d,Direct3d11,在VS2015中调试D3D应用程序时,我遇到了以下错误 D3D11CreateDevice: Flags (0x2) were specified which require the D3D11 SDK Layers for Windows 10, but they are not present on the system. These flags must be removed, or the Windows 10 SDK must be installed. Flags include:

在VS2015中调试D3D应用程序时,我遇到了以下错误

D3D11CreateDevice: Flags (0x2) were specified which require the D3D11 SDK Layers for Windows 10, but they are not present on the system. These flags must be removed, or the Windows 10 SDK must be installed. Flags include: D3D11_CREATE_DEVICE_DEBUG
我知道我需要在Win10中启用图形工具,或者运行
Dism/online/add capability/capabilityname:Tools.Graphics.DirectX~~~~0.0.1.0
来启用它

但是我正在使用的机器不允许连接到互联网。有没有办法离线启用该功能


非常感谢。

不确定,但可能可以从Win10的iso安装图形工具?

对于Windows 10的2015年11月更新(build 10586),您可以找到图形工具包的按需功能CAB。您可以通过
dism
安装它,如该软件包文档中所述


请记住,在Windows 10中有很多东西是Windows的许多“按需功能”部分,包括.NET 3.5、语言包等。

我考虑过,实际上我使用在internet上找到的
dism
命令从iso安装了.NET Framework 3.5。但是我找不到有关如何为图形工具执行此操作的任何信息。您是否尝试在另一台计算机上安装图形工具,然后从c:/Windows/WinSxs复制相应的文件夹?我有这些文件和文件夹:amd64_microsoft-windows-directx-graphics-tools_31bf3856ad364e35_10.0.10240.16384_none_37bf9082f6de1fcf,x86_microsoft-windows-directx-graphics-tools_31bf3856ad364e35_10.0.10240.16384_none_dba0f4ff3e80ae99,amd64\u microsoft-windows-directx-graphics-tools\u 31bf3856ad364e35\u 10.0.10240.16384\u none\u 37bf9082f6de1fcf.manifest和x86\u microsoft-windows-directx-graphics-tools\u 31bf3856ad364e35\u 10.0.10240.16384\u none\u dba0f4ff3e80ae99.manifest。谢谢Chuck。工作起来很有魅力。我只是在找这样的东西。还有一个问题,这些包有索引页吗?以防万一。上面的软件包链接是硬件徽标工具包的解决方案。您也可以作为MSDN或TechNet订户获得FOD CAB。我已从系统中卸载了x86和x64软件包,并将其删除,但仍然可以在VS 2017 IDE控制台中看到错误日志。我想删除图形工具,不想调试任何东西。但即使在运行时未添加该标志,它仍会查找该标志。