.NET Zone is brought to you in partnership with:

I’ve been a Windows developer since 3.0 and caught the Visual Basic wave early with v1. I’ve released a “production” application in every version of VB since then (except VB for DOS). Focusing on enterprise, line-of-business development I’ve built Call Center Applications, Mortgage finance systems, Customer Relationship Management tools and more recently I’ve been in the Litigation Support/Electronic Data Discovery/Electronically Stored Information space. Greg is a DZone MVB and is not an employee of DZone and has posted 476 posts at DZone. You can read more from them at their website. View Full User Profile

Using WinRT On The Desktop To List Metro Apps

06.17.2012
| 4262 views |
  • submit to reddit

Anything about WinRT - How to call WinRT APIs from C# Desktop applications – list the installed Metro packages

As Jaime Rodriguez detailed in April, Windows 8 Excellence Labs are made to help Metro developers to get a token which allows them to submit their application to the Windows Store with high confidence. I’m lucky enough to be part of this Microsoft effort and I hope meeting some of you soon :^)

A tool has been built to help Microsoft engineers to more easily check some basics of a Metro App such as implemented contracts or logos. This is a WPF Desktop application written in C# and its first task is to enumerate the installed Metro App packages.

I can imagine other scenari where you will certainly be interested in automatically checking that your application is well installed. This post will detail how a .NET developer could leverage WinRT from his Desktop application.

...

image..."

There's something I find oddly attractive about hacks/examples like this, where frameworks/api's/etc are used in ways that might not have been envisioned. Also I found this example kind of meta... (meta, as in WinMM meta... get it? )

I gave this a run on my Win8 box and it worked just as advertised.

Screenshot (15)

So much more to explore now... :)

(via Dan Rigby - Windows 8 Developer Links – 2012-06-13)

Published at DZone with permission of Greg Duncan, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)