In this article we are going to see how to use the Application Deployment Tool in Windows Phone SDK to deploy the application to the Windows Phone Emulator. Application Deployment Tool is a standalone package that will be installed by default while installing the Windows Phone Software Development Kit. There are different versions of the Application Deployment Tool available for Windows Phone 7.1 version and for Windows Phone 8.0 versions. [more]
Once the application is build and ready for deployment we have the .XAP file ready to deploy to any physical device or to the emulator. Some of the Windows Phone devices have the memory card slots where we can directly transfer and run it from the device, but for some devices the memory card slot will not be available in those cases we can use this tool to deploy the XAP file to the device directly.
The tool can be accessed from the below location for the different versions
- Version 7.1 – C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v7.1\Tools\XAP Deployment
- Version 8.0 – C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Tools\XAP Deployment
Note that Version 8.0 XAP deployment tool can run both the versions (7.1 and 8.0) where as the 7.1 version can run only that particular OS app. Let us see the steps on how to achieve this task, navigate to the bin folder of the application which we used in our previous article and navigate to the release folder and see that the XAP file build is ready else follow the steps mentioned in this article. Now click on the XAP deployment tool and we can see the stand alone application opens as shown in the screen below.
Now select the target device if we need to deploy the package to the device or to the emulator. Select the Emulator option and navigate to the XAP file by clicking on the browser button and getting the XAP file as shown in the screen below.
Click on the Deploy button will start the deployment process to the emulator we selected or to the device and we can see the expected output and the status as well in the Status column in the tool as shown in the screen below.