This repo includes code to build Apache Cordova applications that target Windows Phone 8 SDK.
An Apache Cordova based applications is, at the core, an application written with web technology: HTML, CSS and JavaScript.
Apache Cordova is a project at The Apache Software Foundation (ASF).
- Windows Phone SDK 8 -- 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 WP8 application.
- The root of the repo contains a file createTemplates.bat. Double clicking this file will generate a .zip template file. (CordovaWP8_x_x_x.zip where x.x.x is the current version number) To easily use these files in Visual Studio, copy them to "My Documents\Visual Studio 2012\Templates\ProjectTemplates" You will then be able to create new Apache Cordova Windows Phone apps from the Visual Studio File->New Project menu.
- If you run the batch file from the command line, you can also call with a parameter to install automatically
Run the script :
>createTemplates.bat -install
>.\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)
>example:
>.\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 :
- ensure the new item is included in the project ( Content ) This includes ALL images/css/html/js/* and anything that you want available at runtime.
- File them at the Apache Cordova Issue Tracker