我在 Windows 10 Home 版本 10.0.16299 32 位、Windows SDK 版本 10.0.17134.12 和 C++/WinRT 版本 1.0.180505.2 上使用 Visual Studio Community 2017 版本 15.7.1。当我尝试使用任何 C++/WinRT 模板创建新项目时,我收到以下错误消息:
Error: this template attempted to load component assembly
'Microsoft.VisualStudio.Universal.TemplateWizards, Version=15.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.
这个问题有简单的解决方法吗?
最佳答案
此错误是由缺少 UWP SDK 引起的。我第一次安装的 Visual Studio 配置为 Desktop development with C++
仅工作流,所以 UWP development
工作负载组件丢失。我加了 UWP development
使用 Visual Studio 安装程序的工作负载。
关于visual-studio - 错误 : this template attempted to load component assembly 'Microsoft. VisualStudio.Universal.TemplateWizards,版本=15.0.0.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50281484/