Description
Currently, when using the
--wp-sdk
option it will only allow a user to use 8.1 and 10.0 for possible values. When attempting to pass in an actual value for the SDK i.e. 10.0.10240.0, 10.0.10586.0 the CLI will not accept it as valid.
This option should be made to accept valid versions of the Windows SDK, similar to the
--ios-version
option in ios-build
Steps to reproduce
Build a Windows project using appc run -p windows -T wp-device --wp-sdk 10.0.10586.0 --build-only
Actual result
The build will error with
Appcelerator Command-Line Interface, version 5.4.0-40
Copyright (c) 2014-2016, Appcelerator, Inc. All Rights Reserved.
Preproduction Environment Active
[ERROR] Invalid "--wp-sdk" value "10.0.10586.0"
Please select a valid wp-sdk value:
1) 8.1
2) 10.0
Select a value by number or name:
Expected result
The CLI should accept a valid version of the SDK for the --wp-sdk option
Sorry, I already worked on this. I'll push related PR soon.
https://github.com/appcelerator/titanium_mobile_windows/pull/818
[~gmathews] ok, sounds good (y)
https://github.com/appcelerator/titanium_mobile_windows/pull/818
Verified fixed, CLI now accepts and actual value of an SDK when using
--wp-sdk
. When runningappc run -p windows -T wp-device --wp-sdk 10.0.10586.0 --build-only
The following appeared in the console.