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