Introduction

 

1. Introduction - Deployment of WP7 Application

Windows Phone application can be deployed on the Windows Phone Emulator or on the Physical Device. A developer can test his application on the Windows Phone Emulator supplied along with Windows SDK 7.1 or He/She can directly test his application on the Windows Phone.

Before he/she can deploy an application to a Windows Phone, he/she must first register the phone, which requires an active developer account on App Hub. Each developer account enables the registration of three devices for application development. For more information about how to create a developer account, see Dev Centre developer account - Reference[1]. After creating a developer account and their phone is registered, they can install, run, and debug unsigned applications on the phone.


Prerequisites

  2. Prerequisites

To deploy an application to a physical Windows Phone device for development and testing work, there are some steps they must take first.

  1. A Windows Live ID.
  2. A valid and current Dev Centre developer account.
  3. The Zune client software must be installed on the host computer. You can download and install the Zune client software from the given link [2].


Registration

 
3. Windows Phone Developer Registration tool

To register the Windows Phone, we need to use the Windows Phone Developer Registration tool. This tool is installed automatically when you install the Windows Phone SDK.

To register the Phone

  1. Turn on your phone and if necessary unlock the phone screen.
    On your phone, ensure that the date and time are correct.
  2. Using the USB cable that came with your phone, connect your phone to your computer.
  3. On your computer, the Zune software starts automatically. If Zune does not start, then start it manually.
  4. On your computer, click Start-> click All Programs, and then click Windows Phone SDK 7.1.
  5. Click Windows Phone Developer Registration.
  6. The application starts, as shown in the following image. Verify that the Status message displays Phone ready. Please enter your Windows Live ID and password and click "Register" to begin.

  7. If your phone is already registered, the Status message will indicate this and you will see an Unregister button.

Enter the Windows Live ID and password that correspond to your App Hub membership
Click Register.

After your phone is successfully registered, the Status message will display Your phone has successfully been registered. You can now deploy applications to the Windows Phone. If you ever need to, you can also unregister the device by clicking Unregister in the tool.

Deployment


4. Deployment for Windows Phone


4.1 To use the Application Deployment tool

  1. Connect your phone to the Computer. Zune Starts automatically, if Zune does not start, then start it manually.
  2. Verify that the Zune software recognizes the connected device.
  3. Click start.
  4. Point to All Programs, and then click Windows Phone Developer Tools.
  5. Click Application Deployment.
    The application deployment tool starts, as shown below.


  6. In the Target drop-down box, select either Windows Phone Emulator or Windows Phone Device as the target file for the XAP file.
  7. Click Browse, and locate the XAP file that you want to deploy.
  8. Click the Deploy button.
    If the deployment is Successful, the Status field displays XAP deployment complete.

4.2 To use the Application Deployment tool

  1. In Visual Studio, on the Standard toolbar, click Windows Phone Emulator.

    or
  2. If you have installed Windows Phone SDK 7.1.1 Update, click Windows Phone Emulator – 512 MB.

    or
  3. If you have installed Windows Phone SDK 7.1.1 Update, click Windows Phone Emulator – 256 MB.

On the Debug menu, click Start Debugging, or press F5.
Your application is deployed to the emulator and started.

References


8. References

  1. Windows Phone Developer Registration http://create.msdn.com/home/about/developer_registration_walkthrough.
  2. Zune Software http://zune.net/en-US/products/software/download/default.htm