错误:此模板尝试加载组件程序集

发布于 2025-01-17 02:29:16 字数 605 浏览 1 评论 0原文

我正在通过本教程学习 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

记忆里有你的影子 2025-01-24 02:29:16

对于 VS 2017 或更高版本,要进行 C++ UWP 开发,您需要安装:

  1. 通用 Windows 平台工作负载 (Microsoft.VisualStudio.Workload.Universal)

  2. 您需要添加C++ 通用 Windows 平台工具可选组件(Microsoft.VisualStudio.ComponentGroup.UWP.VC)。否则,UWP 工作负载仅支持 JavaScript+HTML 和 C# UWP 开发。

  3. 如果要为 UWP 构建 ARM64 配置,您还需要添加用于 ARM64 的独立组件C++ 通用 Windows 平台工具 (Microsoft.VisualStudio.Component.UWP.VC .ARM64)。上面的软件包还涵盖 x86、x64 和 ARM。

Microsoft.VisualStudio.Universal.TemplateWizards 作为 UWP 工作负载的一部分安装。

UWP Essentials 只是某些人在 Visual Studio Marketplace 上的扩展。它不是 Microsoft 软件包。它似乎还捆绑了一些其他扩展。

请参阅此博文,了解有关Visual Studio 安装程序。

For VS 2017 or later, to do C++ UWP development you need to install:

  1. The Universal Windows Platform workload (Microsoft.VisualStudio.Workload.Universal)

  2. 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.

  3. 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.

Microsoft.VisualStudio.Universal.TemplateWizards is installed as part of the UWP Workload.

UWP Essentials is just some individual's extension on Visual Studio Marketplace. It's not a Microsoft package. It also appears to just bundle up some other extensions.

See this blog post for an overview of the Visual Studio Installer.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文