简体   繁体   中英

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. 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. I have checked all the visual studio tools have been installed. However, I just done repair on Visual Studio that took 4 hrs and ate plenty of my Internet but not successful.

Please help.

Make sure you have selected Universal Windows App Development Tools in the VS installer. You may need to go to modify to manually add it.

在此处输入图片说明

On my side I had to specify the right Cordova CLI. After that the 10.0 option appeared.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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