如何离线安装 Windows 10 的 D3D11 SDK 层

How to install D3D11 SDK Layers for Windows 10 offline

我在 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 月更新(内部版本 10586),您可以找到 按需功能 图形工具[的 CABhere。您可以通过 dism 安装它,如该软件包的文档中所述。

请记住,Windows10 中有很多内容,即 Windows 的 'feature on demand' 部分,包括 .NET 3.5、语言包等