无法在 Visual Studio 2015 Cordova 项目中将 Windows 目标版本添加为 Windows 10

Unable to add Windows Target Version as Windows 10 in Visual Studio 2015 Cordova Project

在 Visual Studio 2015 企业版中,当我们 select cordova 项目时,缺少 Windows 目标版本中的 Win10 选项。当我们尝试使用以下命令将功能添加到现有项目时:

cordova platform add windows@https://aka.ms/cordova-win10

它不会对 selected 项目造成任何影响,我怀疑这行消息对我来说很可疑:

NO UAP SDK exists on this machine.

根据错误,我了解到系统缺少通用应用平台 SDK,但不确定该怎么做。我检查了所有 visual studio 工具都已安装。但是,我刚刚完成了 Visual Studio 的修复工作,花了 4 个小时,耗费了大量的互联网资源,但没有成功。

请帮忙。

确保您在 VS 安装程序中选择了 Universal Windows App Development Tools。您可能需要去修改手动添加它。

在我这边,我必须指定正确的 Cordova CLI。之后出现了10.0的选项。

Config.xml(double click) => Platforms => Check globally installed Cordova version