The Windows Phone 7 and Windows Phone 8 Cordova codebases are being merged to reduce redundancy. This repo includes code to build Apache Cordova applications that target either Windows Phone SDK.
Apache Cordova is a project at The Apache Software Foundation (ASF).
Windows Phone SDK 7.1 -- to target Windows Phone 7 devices. (WP7 apps will also run on WP8 devices, in compatibility mode)
Windows Phone SDK 8 -- to target Windows Phone 8 devices -- Windows Phone 8 development requires Windows 8 Professional, and Visual Studio 2012 ( express works )
There are 2 ways to go about creating a new Apache Cordova WP7 or WP8 application.
Run the script :
>.\wp7\bin\create PathToNewProject [ PackageName ] [ AppName ] >.\wp8\bin\create PathToNewProject [ PackageName ] [ AppName ] >PathToNewProject : The path to where you wish to create the project >PackageName : The namespace for the project (default is Cordova.Example) >AppName : The name of the application (default is CordovaWP8AppProj or CordovaWP7AppProj) >examples: >.\wp7\bin\create C:\Users\anonymous\Desktop\MyWP7Project >.\wp8\bin\create C:\Users\anonymous\Desktop\MyWP8Proj io.cordova.example CordovaWP8App Launch Visual Studio and open Solution file (.sln) in (C:\Users\anonymous\Desktop\MyWP7Project) Built and Run it
When you add or remove files/folders in the www folder you will need to do the following :