DirectX Visual Studio 模板不工作

DirectX Visual Studio templates don't Work

我安装了一堆 visual studio directx 模板,其中 none 似乎可以使用。他们都抛出这样的错误:"Error: this template attempted to load component assembly 'Microsoft.VisualStudio.Universal.TemplateWizards, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. For more information on this problem and how to enable this template, please see documentation on Customizing project templates."(这个错误特别出现在 direct3d uwp 游戏模板中)。我尝试对现有的 .vstemplate 文件进行故障排除,但我不知道出了什么问题。

模板打不开,我已经试过了,请帮忙

screenshot of said error "tamam" 也表示还可以

要使用 DirectX-VS-Templates,您需要使用 VS 2017 或 VS 2019 安装 "Universal Windows Platform" 工作负载。它提供 Microsoft.VisualStudio.Universal.TemplateWizards 组件。

该 GitHub 项目中的 UWP 和 Win32 模板都是如此。

对于使用 C++ 的 Direct3D UWP 模板,您需要安装 "Universal Windows Platform" 工作负载和 "C++ Universal Windows Platform tools" 可选组件。

这在 readme 中有记录。