Windows Ten UWP Deployment

Source: Internet
Author: User

OriginalHttp://youthlin.com/20151105.html

We know that the VS connect phone can be deployed directly to the phone, but the tablet does not seem to be able to do so, and the tablet is connected to the computer without slightest reaction ... What if you want to see how the UWP app in VS works on a tablet?

If it is a native computer, you can also directly debug, if the tablet ————

Of course is deployed, but how to deploy, online search has command line winappdeploycmd.exe command, there are Win8.1 ERA deployment method, I tried with winappdeploycmd.exe, has been unable to find equipment, even mobile phone can not search, so gave up the two methods.

Note that there are settings in the WIN10 Update and security settings 面向开发人员 , and you can install the application package by opening developer mode. So how to build the package.

I found the option to generate an app package in the VS menu.

Project-store-Create an app package


Create a Package

If you have already posted a message, you should select the first item "Yes" to generate the package (. appxupload) that is uploaded to the Windows Store, and if you are still in development select No (. appxbundle), here I choose No.


Select the output location

Build the application package here, copy the generated folder to the target device, but how do I install it?

The generated package

Mobile phone, go to File Explorer and click on the. appxbundle file directly (if not, you may have to click the. cer certificate file to install the certificate first).

But on tablets and PCs, the. appxbundle file does not have a corresponding program open (although it is actually a compressed file), there is no option to install the local app in the store, what to do? Notice that there is a. ps1 file in this generated folder, and that's all we need.

Directly right-click to run with PowerShell, the PowerShell window will pop up, and you'll be prompted for UAC permissions, a window pops up and a Y confirmation is entered.


Run the. ps1 file

After the installation is successful, you can find the program in the Start menu.

Windows Ten UWP Deployment

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.