visual-studio - 错误 : this template attempted to load component assembly 'Microsoft. VisualStudio.Universal.TemplateWizards,版本=15.0.0.0

标签 visual-studio visual-c++ c++-winrt

我在 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/

相关文章:

c++ - 为什么 _CrtSetDumpClient 不起作用?

visual-studio - 为什么 VS 2015 菜单右对齐?

c++ - 获取替代方案

c++ - 全局函数和不明确的参数 NULL 与 char* 在 vs 2013 和 GCC 之间

C++/WinRT : Can I await a single IAsyncAction handle from multiple coroutine calls?

c# - 在.NET Core应用程序中使用WinRT组件

asp.net - 如何使用 bat 文件中的 aspnet_compiler?

c - 是否可以使用 Visual C++ 编译前 ANSI(K&R 风格)C 代码?

c++ - C 风格类型转换困惑

azure - 设置从 native 应用程序进行 Azure AD 身份验证的重定向 URI