Click here to Skip to main content
13,893,927 members
Click here to Skip to main content
Add your own
alternative version

Tagged as


4 bookmarked
Posted 24 Oct 2010
Licenced CC (Attr 3U)

Checking Your WP7 Application Capabilities

, 25 Oct 2010
Rate this:
Please Sign up or sign in to vote.
Checking Your WP7 Application Capabilities

If you're doing Windows Phone 7 application development, then part of the submission process replaces the capabilities in the manifest file with those capabilities that it actually requires. To potentially save yourself some time and testing effort, you should make sure that you fully test your application using the correct set of capabilities before it gets to the submission process. This step just got a little easier in the Windows Phone Developer Tools October 2010 Update, which includes the Windows Phone Capability Detection Tool.

You use the Capability Detection Tool against your application XAP file to verify which capabilities you actually need so that you can update your manifest accordingly. As the above MSDN article explains, it’s a command line tool which you use like this:

CapabilityDetection.exe Rules.xml [Path to bin folder] 

To make my life a little easier, I turned this into an External Tool in Visual Studio. Just set the Command to:

C:\Program Files (x86)\Microsoft SDKs\Windows Phone\

the Arguments to:

Rules.xml $(BinDir)

and the InitialDirectory to:

C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v7.0\Tools\CapDetect\

You should also check the Use Output Window checkbox.

The settings and example output are shown in the following picture:

Capability Detection Tool


Note: Under some circumstances (such as local instantiation of a URI), the capability detection tool will report the ID_CAP_NETWORKING capability. If you really don't need this capability, you can safely remove it, but you should make sure you test fully after removing it.


The October Update also includes the Windows Phone Connect Tool, which enables you to connect your phone to a PC when the Zune software is not running and debug applications that use media APIs and unspecified improvements to gesture performance when using the Bing Maps Silverlight control.


This article, along with any associated source code and files, is licensed under The Creative Commons Attribution 3.0 Unported License


About the Author

Derek Lakin
Software Developer (Senior)
United Kingdom United Kingdom
No Biography provided

You may also be interested in...


Comments and Discussions

GeneralAwesome Pin
thelastlemon25-Apr-11 7:29
memberthelastlemon25-Apr-11 7:29 
GeneralThx.. Pin
Phone Fred22-Feb-11 1:39
memberPhone Fred22-Feb-11 1:39 
GeneralGood idea Pin
rodneyjoyce25-Oct-10 12:40
memberrodneyjoyce25-Oct-10 12:40 
GeneralRe: Good idea Pin
Derek Lakin25-Oct-10 12:42
memberDerek Lakin25-Oct-10 12:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web01 | 2.8.190306.1 | Last Updated 25 Oct 2010
Article Copyright 2010 by Derek Lakin
Everything else Copyright © CodeProject, 1999-2019
Layout: fixed | fluid