Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to deploy a metro app to windows 8 device/Tablet?

For testing an application, I have deployed my metro app by creating a app package which is provided in vs2012. I have deployed the package by opening using the PowerShell, but now I want to deploy the metro app in a Windows 8 device (tablet) for testing it, how can I do this?

  1. Will there be a PowerShell option available in device also? (to deploy the app)

  2. Are there any other ways of deployment?

like image 279
user1516781 Avatar asked Jan 17 '13 11:01

user1516781


2 Answers

i have used this to sideload apps for testing onto other devices including SurfaceRT http://blogs.msdn.com/b/patricka/archive/2012/11/06/10365947.aspx

like image 112
Hermit Dave Avatar answered Nov 06 '22 01:11

Hermit Dave


In addition to creating an app package in Visual Studio 2012, and deploying your app that way, you can also use the Remote Tools for Visual Studio 2012 for ARM to deploy and debug an app to a Surface or other tablet (for x86 or x64 tablets, use the matching remote tools install).

Once the remote tools have been installed on the target device, you simply start up the remote tools on the target, configure the access permissions, and then on your development machine, open the project properties, select the Debugging option, and use the dropdown to select Remote Machine as the debugger to launch. Click into the Machine Name field, and use the dropdown to select the machine name of the target machine running the remote tools.

Now, when you start debugging the project, it'll be packaged up and deployed to the target device, and you can set breakpoints and step through your code. And once deployed this way, you can re-run the app from the start screen using the app's tile.

EDIT: One important thing to note...whether you deploy/sideload using the PowerShell script technique, or using remote debugging, the target device will need to have a valid developer license. You should be prompted to obtain a developer license when you attempt to sideload your app, but you can also use PowerShell to obtain the license manually...instructions can be found here: http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh974578.aspx

like image 38
devhammer Avatar answered Nov 06 '22 02:11

devhammer