Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to deploy windows phone 10 application to a device?

Tags:

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?

like image 645
Joseph Avatar asked Jun 04 '15 06:06

Joseph


People also ask

How is software deployed to mobile devices?

There are two ways to deploy apps to mobile devices: sideloading and deeplinking. Sideloading is when you have the actual installation files (such as an . appx, . xap, .

How do I add apps to Windows 10 phone?

Install the Your Phone Windows app from the Microsoft Store and launch it. Just type "Your Phone," into the Cortana search box and clicking on the result that appears. If it's not already installed, it will launch. If not, you'll be transported to the store where you click the download button.

Can Windows 10 Mobile run desktop apps?

Although marketed as a converged platform, and as with Windows Phone 8, using a Windows NT-based kernel, Windows 10 Mobile still cannot run Win32 desktop applications, but is compatible with software designed for Windows Phone 8.


2 Answers

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.

enter image description here

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.

enter image description here

like image 193
Joseph Avatar answered Sep 19 '22 04:09

Joseph


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

like image 41
talkitbr Avatar answered Sep 17 '22 04:09

talkitbr