简体   繁体   中英

how to deploy windows phone 10 application to a device?

I am using a Nokia lumia630 device, which uses latest windows 10 insider preview build available.

i created a sample windows UWP application and took a build of the same.The output of the build is an Appx.

How can i install this Appx to my device? Anyone having any idea?

Deploying apps to Win 10 Mobile is a bit difficult when using the command line tool. A great alternative is the Device Portal that is available under the “For Developer” settings.Its available with the latest build.

在此输入图像描述

Now You can connect to the device using a web browser and manage apps via the Apps page with no pairing/pin required. This seems to be an easy way of deploying apps than using command line.

在此输入图像描述

Microsoft developed a command line tool called WinAppDeployCmd so you can deploy an Universal Windows app from a Windows 10 machine to any Windows 10 Mobile device via USB or WiFi (since they're on the same subnet). That's a perfect solution if you doesn't have Visual Studio, the app source code or you're under a Hyper-V Virtual Machine.

Basically you will need:

  1. Windows 10 SDK
  2. Generate the .appx package (PC)
  3. Enable the developer mode (Mobile)
  4. Turn on the discovery mode (Mobile)
  5. Get the code to pair devices (Mobile)
  6. Get mobile IP address using WinAppDeployCmd tool (PC)
  7. Run command (PC)

The command will look like this

WinAppDeployCmd install -file “<path>” -ip <ip> -pin <pin>

The tool can be found at C:\\Arquivos de Programas (x86)\\Windows Kits\\10\\bin\\x86\\WinAppDeployCmd.exe

You can find a detailed step-by-step tutorial here

Visual Studio allows you to directly deploy an app to a windows phone. You need to register your windows phone as a development phone with Microsoft. Once this is done, you could use visual studio to do this for you. Not sure if you can deploy windows 10 apps to your phone at the moment. Try this link and see: https://msdn.microsoft.com/en-us/library/windows/apps/ff769508%28v=vs.105%29.aspx Remember to Upvote if this helps.

You can register your Windows Phone 10 in developer mode. Follow these steps and you can achieve your goal.

When you use device portal like mentioned in the answers above, some might get the following error "Failed to start deployment. Failure text: Package failed updates, dependency or conflict validation. (0x80073cf3)"

To fix this: Add the dependencies found under "Dependencies/ARM" folder.Add it here.

在此输入图像描述

I had to add following dependencies to make it work: Microsoft.NET.CoreRuntime.1.0.appx Microsoft.VCLibs.ARM.Debug.14.00.appx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM