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.

Getting Started with Windows Phone

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.

Video Tutorials:

  1. Requirements

  • Windows 7 or Windows Vista with SP2

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:

  1. Install SDK + Cordova

  • Download and install Windows Phone SDK
  • Donwload the latest copy of Cordova and extract its contents. We will be working with the Android directory.
  1. Setup New Project

  • 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.

  1. Review the project structure

  • 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.

  1. Build and Deploy to Emulator

  • 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.

  1. Build your project for the device

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.

Done!

You can also checkout more detailed version of this guide here.