Description
Currently when running
appc ti info \-t windows
the CLI will print out the below, showing a 'selected' SDK. This is confusing to a user as there is no way for them to actually select an SDK for it to be shown in the output, all selection is done during build time depending on the
--wp-sdk
value passed in or the OS version on the device/emulator. To stop this confusion
(selected)
should be removed
Microsoft (R) Windows Phone SDK
10.0
Path = C:\Program Files (x86)\Windows Kits\10\
8.1 (selected)
Path = C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.1\
I found that
selected
property is actually used to decide default Windows SDK as final fallback when no\-\-wp-sdk
is specified. But the problem is there's no way to change its value like Ewan noted. I also found that there'swindows.wpsdk.selectedVersion
config property implemented in [cli/lib/info.js](https://github.com/appcelerator/titanium_mobile_windows/blob/master/cli/lib/info.js#L32). This configuration property seems to be meant to specify default Windows SDK and it should be the way to change "selected" Windows SDK, but seems like this property doesn't work. So I think the real problem in this ticket is, *There's no way to change selected Windows SDK*. *Steps to reproduce (Windows Phone SDK)*appc ti info -p windows -json
and see which Windows Phone SDK is markedselected
appc ti config windows.wpsdk.selectedVersion 10.0
*Expected* * Windows 10.0 SDK is selected *Actual* * Windows 10.0 SDK is not selected *Steps to reproduce (Windows SDK)*appc ti info -p windows -json
and see if Windows 10.0 Phone SDK is markedselected
appc ti info -p windows -json
and see which Windows SDK is markedselected
appc ti config windows.sdk.selectedVersion 10.0
*Expected* * Windows 10.0 SDK is selected *Actual* * Windows 10.0 SDK is not selectedappc ti info -p windows -json
and see if Windows 10.0 SDK is markedselected
titanium_mobile_windows: https://github.com/appcelerator/titanium_mobile_windows/pull/869 windowslib: https://github.com/appcelerator/windowslib/pull/57 titanium_mobile: https://github.com/appcelerator/titanium_mobile/pull/8383
Verified improvement, using
appc ti config windows.sdk.selectedVersion
i was able to verify the changes in the selected windows SDK. These are the steps i took to verify the changes. *Windows Phone SDK* 1. Usedappc ti config windows.wpsdk.selectedVersion 8.1
to change windows phone SDK to 8.1. 2. Usedappc ti info -p windows
to verify the selected windows phone SDK version was 8.1.3. Used
appc ti config windows.wpsdk.selectedVersion 10.0
to change windows phone SDK to 10.0. 4. Usedappc ti info -p windows
to verify the selected windows phone SDK version was 10.0.*Windows SDK* 1. Used
appc ti config windows.sdk.selectedVersion 8.1
to change windows SDK to 8.1. 2. Usedappc ti info -p windows
to verify the selected windows SDK version was 8.1. 3. Usedappc ti config windows.sdk.selectedVersion 10.0
to change windows SDK to 10.0.*Environment*