Visual Studio 2012 and Windows 8 make pretty easy to start with Windows Store
applications development. You will have no issues to run and test your fancy
Windows applications on your PC but probably you need to know a little more when
you need to deploy and test Windows Store apps on arm devices.
First you need to know what is Windows RT: Windows RT is the feature-limited Windows 8 version to run on ARM processors.
Windows Runtime, also referred to as WinRT, runs on both standard Windows 8
and Windows RT. Runtime is the technical term for the engine that powers the new
Modern UI apps. It's not the first Windows Runtime. "Runtime" refers to the
collection of application programming interfaces (APIs) that allow developers to
write software that can interact with the hardware and each other.
What else you need to know before you start:
- You heed a Developer License for Windows 8:
Writing Metro Style Apps for
Windows 8 requires that you have a valid Developer License for Windows 8. The Developer
License is free, regardless of the edition of Visual Studio you are using. The
license works with Windows 8 Metro style apps only, you do not need it to write
other .NET based programs like ASP.Net , Windows Forms or WPF apps. A developer
license is not the same as a Windows Store account. A Windows Store account is
what you use to sell and manage your Metro style apps.
To be possible to deploy and debug Windows Store applications you need to
- For arm devices you should set in solution properties –> Configuration
Properties-> Project Platform to "ARM". You can’t deploy apps built for arm
architecture to your emulator – you need to use a real arm device.
- After this step, the UAC is disabled you slide the slider upwards to enable the UAC and then click on the OK Button. That is shown in following image:
Setting the Remote Debugger
The basic process would be to set up a Remote Debugger service on your tablet
and from a desktop on the same subnet, run on it directly. This assumes you have
a development tablet device and a desktop running the same user (who also has
admin rights). You can install remote debugging service and monitor via Remote
Tools for Visual Studio 2012. The actual version is available here.
- Install the tool on your tablet and in your start page’s All apps view (via
bottom application bar), you will have an app called Remote Debugger
Configuration Wizard. Run it to open the wizard and input your admin user’s
credentials (most likely in the form of [MachineName]\[UserName]). Once it’s set
up, you can monitor the remote processes with the Remote Debugger tool. Probably
first time you will receive an error message because your user is not logged as
- Give the remote debugger user user also an option : "Log as a service". It
is not easy to do that "out of the box" for Windows RT devices:
- Click Start, point to Run, type
mmc, and then click OK.
- On the File menu, click Add/Remove
- In Add/Remove Snap-in, click Add, and
then, in Add Standalone Snap-in, double-click Group
Policy Object Editor.
- In Group Policy Object, click Browse,
browse to the Group Policy object (GPO) that you want to modify, click
OK, and then click Finish.
- Run the remote debugger and Visual Studio Remote Debugging Monitor will appear.
- To be possible to deploy and debug apps on your ARM device you should also
enter again your Windows 8 developer license credentials (for Windows RT
- Then, from your desktop with the code, select to run from Remote Machine.
- In the pop-up, input the machine name / IP of the tablet and it port and voila,
you should have the debugger and app running on the tablet!
Try to play with your application. Add breakpoints and let your app to stop at a specified row from your code.
- You could debug applications for Windows RT only if you deploy and debug it
on arm device with Windows RT.
- There should be installed Remote Debugging Tools for arm on your Windows RT
- You need to have a valid Windows 8 Developer license
- UAC should be turn on.
- The remote debugger should run run with credentials of the user, who is in
the local administrators group and log as a service.
Points of Interest
WIndows 8, Windows Store Applications, Windows RT, WinRT. Modern UI
This is the first version of this article
Mihail Mateev is a Senior Technical Evangelist, Team Lead at Infragistics Inc. He worked as a Software developer and team lead on WPF and Silverlight Line of Business production lines of the company. Now he works like a Technical evangelist in the Infragistics.
Mihail worked in various areas related to technology Microsoft: Silverlight, WPF, Windows Phone 7, Visual Studio LightSwitch, WCF RIA Services, ASP.Net MVC, Windows Metro Applications, MS SQL Server and Windows Azure. He also write many jQuery related blogs.
Over the past ten years, Mihail has written articles for Bulgarian Computer World magazine, blogs about .Net technologies. He is a contributor and a technical editor of publications PACKT Publishing and Wiley. Mihail did presentations for .Net and Silverlight user groups in Bulgaria. He has an Experience with GIS system over .Net framework. He worked more than five years in ESRI Bulgaria like a Software developer and a trainer. Several years Mihail did a lectures about Geographic Information Systems in the Sofia University “St. Kliment Ohridski” , Faculty of Mathematics and Informatics. Mihail is also a lecturer about Computer Systems in the University of the Architecture, Civil Engineering and Geodesy in Sofia at Computer Aided Engineering Department. Mihail holds master's degrees in Structural Engineering and Applied Mathematics and Informatics.