Install and start the Windows Phone 8 App with the command line

Source: Internet
Author: User

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

    1. 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.
    2. /targetdevice:xd means installing into the emulator and/targetdevice:de means installing to the phone.
    3. 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

    1. 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

    1. The 2 in Targetdevice:2 is from here. You can specify any number in device index.
    2. 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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.