how to deploy windows phone 10 application to a device?

佐手、 提交于 2019-11-28 07:29:40

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!