Deploying Your App to Windows Phone 8

,Deploying Your App to Windows Phone 8

Windows Phone App Deployment, Fair Use

Deploying your app to a Windows Phone requires you have the needed software installed, a valid Microsoft account, a Windows Phone developer account, and your phone registered (unlocked) by Microsoft. If you wish to register a Windows 8 phone, you must use SDK 8.0, which requires the Windows 8 operating system. Below are the steps for deployment of your Windows Phone application to a Windows Phone 8 device.

  1. On a computer running Windows 8, download and install SDK 8.0. The SDK can be downloaded from the Windows Phone Dev Center Download page. See the Starting WP Development Article in you need to create to create a Windows 8 virtual machine.
  2. You will need a Microsoft account.
  3. You will need a current developer account on Windows Phone Dev Center (a.k.a. The App Hub).
  4. You will need to register your phone with Microsoft by using the Windows Phone Developer Registration tool. This is a stand-alone tool that’s installed as part of the Windows Phone SDK. The program is located in the Windows Phone SDK 8.0 directory.
  5. To register you phone with Microsoft using Windows Phone Developer Registration tool, follow these steps.
    • Turn on your phone and unlock the phone screen.
    • On your phone, ensure that the date and time are correct.
    • Connect your phone to your computer by using the USB cable that came with your phone.
    • Under Windows Phone SDK, click Windows Phone Developer Registration.
    • After the screen indicates your phone has been detected, press the Register button. The screen should indicate you have unlocked your Windows Phone.
,Windows Phone Developer Registration

Windows Phone Developer Registration, Fair Use

  1. Once your Windows Phone has been unlocked and registered with Microsoft, you can deploy your applications to the phone. To deploy your application to a WP 8 phone, follow these steps.
    • Turn on your phone and unlock the phone screen.
    • Connect your phone to your computer by using the USB cable that came with your phone.
    • Open the project containing the application and build the project in Visual Studio.
    • Locate the .xap file that was generated by the build. e.g. C:\MangoRTMTK_Basic\Labs\HelloPhone\Source\Ex2-WP7AppUXDesignWithBlend\Begin\HelloPhone\Bin\Debug\HelloPhone.xap
    • . Move the .xap file if necessary, see notes at the bottom of the page.

    • Under Windows Phone SDK 8.0, click on Application Deployment.
,WP SDK 8.0

WP SDK 8.0 App Deployment, Fair Use

  • Set the Taget: to device. Set the XAP: to the location of the .xap file you wish to deploy. Press the Deploy button.
,SDK 8.0 Application Deployment

Deploy to Device, Fair Use

  • Check the screen status for any error messages. If successful the status will state: XAP Deployment Complete and the application will now be on the phone.
,SDK 8.0 Application Deployment

XAP Deployment Complete, Fair Use

Note: If developing WP 7.1 and deploying to WP 8.0, you will need to move the .xap file to the Windows 8 computer or VM. I put the .xap file onto my SkyDrive from Windows 7 and retrieve it from SkyDrive in my Windows 8 VM.