Windows 通用应用程序开发模板加载错误

Windows Universal App Development Template Load error

现在刚刚完成设置并尝试使用 Visual Studio 2015 Enterprise

构建 "Hello World" 应用程序时,这很烦人
---------------------------
Microsoft Visual Studio
---------------------------
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.
---------------------------
OK   
---------------------------

现在我不明白它有什么问题。我在 Windows 8.1 上试用了社区版并能够构建应用程序。但是在 Windows 10 上尝试使用企业版时,除了错误之外什么都没有。

信息页面也没有列出任何开发工具。

Microsoft Visual Studio Enterprise 2015
Version 14.0.23107.0 D14REL
Microsoft .NET Framework
Version 4.6.00079

Installed Version: Enterprise

Architecture and Modeling Tools   00322-80000-00000-AA627
Microsoft Architecture and Modeling Tools

UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.

Visual Basic 2015   00322-80000-00000-AA627
Microsoft Visual Basic 2015

Visual C# 2015   00322-80000-00000-AA627
Microsoft Visual C# 2015

Visual C++ 2015   00322-80000-00000-AA627
Microsoft Visual C++ 2015

Application Insights Tools for Visual Studio Package   1.0
Application Insights Tools for Visual Studio

ASP.NET and Web Tools   14.0.20711.0
ASP.NET and Web Tools

ASP.NET Web Frameworks and Tools 2013   5.2.30624.0
For additional information, visit http://www.asp.net/

Common Azure Tools   1.5
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

GenerateUnitTest   1.0
Generates unit test code for methods in classes under test.

GitHub.VisualStudio   1.0
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.

Indent Guides   14
Indent Guides

Adds visual guides at each indentation level.

Microsoft Azure HDInsight HQL Service   2.0.2200.0
Language service for Hive query

Microsoft Azure HDInsight Tools for Visual Studio   2.0.2200.0
An integrated development environment for HDInsight application development.

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

Microsoft Code Digger   0.9
Microsoft Code Digger

Microsoft.Pex.VisualStudio   1.0
Pex

NuGet Package Manager   3.0.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools   14.0.50616.0
Microsoft SQL Server Data Tools

Web Essentials 2015   0.5.144
Adds many useful features to Visual Studio for web developers.

我在 VirtualBox 的 Windows 10 上遇到了同样的问题。

您必须再次 运行 visual studio 安装程序。 Select "Modify" 在安装程序中。 Select 功能 > "Windows and Web Development" > "Universal Windows App Development Tools" > 单击更新/安装。

现在您将能够使用 vs 项目模板 Windows IoT Core。

您可以在这里找到解决方案。

https://github.com/walbourn/directx-vs-templates/issues/7

上面的网站说,

解决此问题的方法是编辑 C:\Program Files (x86)\Microsoft Visual Studio17\Enterprise\Common7\IDE\devenv.exe.config 并添加到部分:

<dependentAssembly>
  <assemblyIdentity name="Microsoft.VisualStudio.Universal.TemplateWizards" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
  <bindingRedirect oldVersion="14.0.0.0" newVersion="15.0.0.0"/>
</dependentAssembly>
<dependentAssembly>
  <assemblyIdentity name="Microsoft.VisualStudio.WinRT.TemplateWizards" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
  <bindingRedirect oldVersion="14.0.0.0" newVersion="15.0.0.0"/>
</dependentAssembly>

也许您禁用了 visual studio 的 xamarin。 Select 工具 > "Extensions en Updates" > "Xamarin For visual studio" > 单击已启用。

如果来自 DirectX 项目模板的项目出现此类错误,请确保您已安装 UWP 工作负载(来自 Visual Studio 安装程序)。