Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Platform release guide, "What to test" tells you to:
./cordova-android/bin/create ./androidTest2 org.apache.cordova.test2 androidTest2 (cd androidTest2 && ./cordova/build) (cd androidTest2 && ./cordova/run --device) (cd androidTest2 && ./cordova/run --emulator)
If you run this for cordova-windows, the build will unfortunately possibly fail:
C:\Projects\Cordova\cordova-windows\bin\windowsTest2\cordova (6.0.x -> origin) λ build ENV var VSINSTALLDIR is set C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\ Building project: C:\Projects\Cordova\cordova-windows\bin\windowsTest2\CordovaApp.Windows10.jsproj Configuration : debug Platform : anycpu Buildflags : /p:AppxBundle=Never MSBuildTools : C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin buildProject spawn: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\msbuild [ 'C:\\Projects\\Cordova\\cordova-windows\\bin\\windowsTest2\\CordovaApp.Windows10.jsproj', '/clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal', '/nologo', '/p:Configuration=debug', '/p:Platform=anycpu', '/p:AppxBundle=Never' ] { stdio: 'inherit' } C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\Microsoft\VisualStudio\v15.0\JavaScript\Microsoft.VisualStudio.JavaScript.UAP.targets(84,3): error : "10.0.10240.0" is not a supported value for TargetPlatformVersion. Please change it on the Project Property page. [C:\Projects\Cordova\cordova-windows\bin\windowsTest2\CordovaApp.Windows10.jsproj] C:\Projects\Cordova\cordova-windows\bin\windowsTest2\cordova\node_modules\q\q.js:155 throw e; ^ Error at C:\Projects\Cordova\cordova-windows\bin\windowsTest2\cordova\lib\build.js:83:29 at _rejected (C:\Projects\Cordova\cordova-windows\bin\windowsTest2\cordova\node_modules\q\q.js:864:24) at C:\Projects\Cordova\cordova-windows\bin\windowsTest2\cordova\node_modules\q\q.js:890:30 at Promise.when (C:\Projects\Cordova\cordova-windows\bin\windowsTest2\cordova\node_modules\q\q.js:1142:31) at Promise.promise.promiseDispatch (C:\Projects\Cordova\cordova-windows\bin\windowsTest2\cordova\node_modules\q\q.js:808:41) at C:\Projects\Cordova\cordova-windows\bin\windowsTest2\cordova\node_modules\q\q.js:624:44 at runSingle (C:\Projects\Cordova\cordova-windows\bin\windowsTest2\cordova\node_modules\q\q.js:137:13) at flush (C:\Projects\Cordova\cordova-windows\bin\windowsTest2\cordova\node_modules\q\q.js:125:13) at _combinedTickCallback (internal/process/next_tick.js:73:7) at process._tickCallback (internal/process/next_tick.js:104:9)
This will only succeed if you have this super old version 10.0.10240.0 of the UAP target installed.
To get it to run with current tooling, you also have to run the `prepare` script first which will update the file to reference a current version of the target.