First, install and start the application
"C:\Program Files (x86) \microsoft SDKs\Windows phone\v8.0\tools\xap Deployment\xapdeploycmd.exe" /installlaunch D:\Projects\WindowsPhone\Bin\Debug\WindowsPhone_AnyCPU_3.2.3.xap /targetdevice:xd
Description
- The first path is because there is a space in the middle, so you need to enclose it in double quotation marks, the second path is not needed, and you want to write on the line.
- /targetdevice:xd means installing into the emulator and/targetdevice:de means installing to the phone.
- The default is installed in the first simulator
Second, start the installed application
"C:\Program Files (x86) \microsoft SDKs\Windows phone\v8.0\tools\xap Deployment\xapdeploycmd.exe" /launch F8ce6878-0aeb-497f-bcf4-65be961d4bba /targetdevice:xd
Description
- Launch is followed by the product ID, which can be found in the project's \properties\wmappmanifest.xml.
Third, deploy to the specified device
"C:\Program Files (x86) \microsoft SDKs\Windows phone\v8.0\tools\xap Deployment\xapdeploycmd.exe" /update D:\ Projects\windowsphone\bin\debug\windowsphone_anycpu_3.2.3.xap /targetdevice:2
Description
- The 2 in Targetdevice:2 is from here. You can specify any number in device index.
- Check out: "C:\Program Files (x86) \microsoft SDKs\Windows phone\v8.0\tools\xap Deployment\xapdeploycmd.exe" / Enumeratedevices
Iv. Deleting a deployed app
"C:\Program Files (x86) \microsoft SDKs\Windows phone\v8.0\tools\xap Deployment\xapdeploycmd.exe" /uninstall F8ce6878-0aeb-497f-bcf4-65be961d4bba /targetdevice:xd
V. Summary
Reference Document: http://msdn.microsoft.com/zh-cn/library/windows/apps/ff402565 (v=vs.105). aspx
We usually use the VS deployment or the "Windows Phone application Deployment" tool, sometimes we want to play one- click Deployment or One-click Update , with the command line is also a good choice.
It is recommended that you save these commands as *.bat on the desktop or other handy places, and this usage can only be used for Windows Phone 8.0.
Have a good weekend, good night!