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 describes how to set up your development environment for Cordova and run a sample application. Note that Cordova used to be called PhoneGap, so some of the sites still use the old PhoneGap name.
Note: Running in VM has issues, if you are on a Mac, you will need to setup a bootcamp partition with Windows 7 or Vista
Necessary for Installing on Device and Submitting to Market Place:
( 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 )
Open Visual Studio Express for Windows Phone and choose New Project.
Select CordovaStarter. ( the version number will be displayed in the template description )
Give your project a name, and select OK.
The ‘www’ folder contains your Cordova html/js/css and any other resources included in your app.
Any content that you add here needs to be a part of the Visual Studio project, and it must be set as content.
Make sure to have Windows Phone Emulator selected in the top drop-down menu.
Hit the green play button beside the Windows Phone Emulator drop-down menu to start debugging or press F5.
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.
Make sure your phone is connected, and the screen is unlocked
In Visual Studio, select ‘Windows Phone Device’ from the top drop-down menu.
Hit the green play button beside the drop-down menu to start debugging or press F5.
You can also checkout more detailed version of this guide here.