license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
This guide shows how to set up your SDK development environment to deploy Cordova apps for Windows Phone 7 devices. Apps also run on Windows Phone 8 devices using the same APIs, but version 7 lacks some of IE10's advanced features available on Windows Phone 8. Windows Phone 8 apps do not run on Windows Phone 7 devices.
See the following for more detailed platform-specific information that applies to both versions:
The command-line tools above refer to versions prior to Cordova 3.0. See The Cordova Command-line Interface for information about the current interface.
Operating System:
Register and pay for a Windows Phone Dev Center account if you want to install your app on a real device or submit it to Market Place.
NOTE: Running the SDK in Virtual Machine might present some challenges. You can read this blog post that gives insight on the solutions to develop for Windows Phone on a Mac.
lib\windows-phone-8\wp7
subfolder, lib\windows-phone-8\wp8
contains the Windwos Phone 8 version of Cordova.NOTE: this step may not be required. If the lib\windows-phone directory already contains a file CordovaWP7_x_x_x.zip then you may skip this step.
In order to simplify the development process, Cordova comes with a script to build Visual Studio templates. This allows for rapid creation of Cordova applications inside Visual Studio. This template can be modified if needed and the below steps indicate how to proceed if you want to generate the template.
Run the script :
>createTemplates.bat -install
www
folder contains your Cordova html/js/css
and any other resources included in your app.In order to test your application on a device, the device must be registered. Click here to read documentation on deploying and testing on your Windows Phone 7.