错误:此模板尝试加载组件程序集
我正在通过本教程学习 C++: https://learn.microsoft.com/en-us/windows/uwp/gaming/tutorial--setting-up-the-games-infrastruct。我已经安装了 VS2019 的 C++/WinRT 模板和可视化工具,但当我想创建新的核心应用程序时,它显示以下消息:
错误:此模板尝试加载组件程序集“Microsoft.VisualStudio.Universal.TemplateWizards,版本=15.0”。 0.0,文化=中性,PublicKeyToken=b03f5f7f11d50a3a'。有关此问题以及如何启用此模板的更多信息,请参阅有关自定义项目模板的文档
。
我在自定义项目模板的文档中没有找到任何有用的内容。我安装了 UWP Essentials 和 NuGetRecommender [预览版],但它仍然无法正常工作。 我正在使用 Visual Studio 2019
I'm learning C++ with this tutorial: https://learn.microsoft.com/en-us/windows/uwp/gaming/tutorial--setting-up-the-games-infrastructure. I have installed C++/WinRT templates and visualizer for VS2019 but when I want to create new Core App it says this message:
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
.
I haven't found anythin useful in documentation on Customizing Project Templates. I installed UWP Essentials and NuGetRecommender [Preview] but it still isn't working.
I'm using Visual Studio 2019
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于 VS 2017 或更高版本,要进行 C++ UWP 开发,您需要安装:
通用 Windows 平台工作负载 (
Microsoft.VisualStudio.Workload.Universal
)您需要添加C++ 通用 Windows 平台工具可选组件(
Microsoft.VisualStudio.ComponentGroup.UWP.VC
)。否则,UWP 工作负载仅支持 JavaScript+HTML 和 C# UWP 开发。如果要为 UWP 构建 ARM64 配置,您还需要添加用于 ARM64 的独立组件C++ 通用 Windows 平台工具 (
Microsoft.VisualStudio.Component.UWP.VC .ARM64
)。上面的软件包还涵盖 x86、x64 和 ARM。请参阅此博文,了解有关Visual Studio 安装程序。
For VS 2017 or later, to do C++ UWP development you need to install:
The Universal Windows Platform workload (
Microsoft.VisualStudio.Workload.Universal
)You need to add the C++ Universal Windows Platform tools optional component (
Microsoft.VisualStudio.ComponentGroup.UWP.VC
). Without this, the UWP workload only supports JavaScript+HTML and C# UWP development.If you want to build ARM64 configurations for UWP, you'll also need to add the Individual Component C++ Universal Windows Platform tools for ARM64 (
Microsoft.VisualStudio.Component.UWP.VC.ARM64
). The package above otherwise covers x86, x64, and ARM.See this blog post for an overview of the Visual Studio Installer.