You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Jan Piotrowski (Sujan) (JIRA)" <ji...@apache.org> on 2018/02/20 12:51:00 UTC
[jira] [Created] (CB-13908) [Windows] cordova/bin scripts create an
unrunnable project
Jan Piotrowski (Sujan) created CB-13908:
-------------------------------------------
Summary: [Windows] cordova/bin scripts create an unrunnable project
Key: CB-13908
URL: https://issues.apache.org/jira/browse/CB-13908
Project: Apache Cordova
Issue Type: Bug
Components: cordova-coho, cordova-windows
Reporter: Jan Piotrowski (Sujan)
Assignee: Jesse MacFadyen
Platform release guide, "What to test" tells you to:
{code}
./cordova-android/bin/create ./androidTest2 org.apache.cordova.test2 androidTest2
(cd androidTest2 && ./cordova/build)
(cd androidTest2 && ./cordova/run --device)
(cd androidTest2 && ./cordova/run --emulator)
{code}
If you run this for cordova-windows, the build will unfortunately possibly fail:
{code}
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)
{code}
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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org