简体   繁体   English

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

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

In Visual Studio 2015 Enterprise edition when we select cordova project, Win10 option from Windows Target Version is missing. 在Visual Studio 2015企业版中,当我们选择cordova项目时,Windows目标版本中的Win10选项丢失。 When we try to add the functionality to the existing project using below command: 当我们尝试使用以下命令将功能添加到现有项目中时:

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

It is not leaving any impact on the selected project, I suspect this line of message is suspicious for me: 它不会对所选项目产生任何影响,我怀疑这条信息对我而言是可疑的:

NO UAP SDK exists on this machine.

From the error, I understand the system is missing Universal App Platform SDK but not sure what to do. 从该错误中,我了解到系统缺少通用应用平台SDK,但不确定该怎么做。 I have checked all the visual studio tools have been installed. 我已经检查了所有Visual Studio工具是否已安装。 However, I just done repair on Visual Studio that took 4 hrs and ate plenty of my Internet but not successful. 但是,我只是在Visual Studio上完成了修复工作,这花费了4个小时,并且吞噬了我的大量Internet,但没有成功。

Please help. 请帮忙。

Make sure you have selected Universal Windows App Development Tools in the VS installer. 确保已在VS安装Universal Windows App Development Tools选择了“ Universal Windows App Development Tools ”。 You may need to go to modify to manually add it. 您可能需要进行修改以手动添加它。

在此处输入图片说明

On my side I had to specify the right Cordova CLI. 在我这边,我必须指定正确的Cordova CLI。 After that the 10.0 option appeared. 之后,出现10.0选项。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM