How to deploy .xap using the command line

I want to deploy xap for a Windows Phone 7.1 emulator using the command line, and I was running the msdn article http://msdn.microsoft.com/en -us / library / WindowsPhone / development / ff402565 (v = vs .105) .aspx # BKMK_commandline

I can build a project using the following command: MSBuild D:\Projects\PhoneApp1\PhoneApp1\PhoneApp1.csproj

but when I run this command: XapDeployCmd.exe / installlaunch D: \ PhoneApp1.xap / targetdevice: xd I get the error message "XapDeployCmd.exe" is not recognized as an internal or external command, operating program or batch file. "I have installed update for Visual Studio 2. What does it mean and how do I use the command line to deploy my xap.

+1
command-line windows-phone xap
source share
1 answer

Have you checked if XapDeployCmd.exe complies with the directive on your path to the environment?

If you cannot add the whole path, for example: C: \ Program Files (x86) \ Microsoft SDK \ Windows Phone \ v8.0 \ Tools \ XAP Deployment \ XapDeployCmd.exe / installlaunch D: \ PhoneApp1.xap / targetdevice: XD

I would also check if any emulator is installed

+2
source share

All Articles