Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat is the correct way to manage app 'Capabilities' listed in the WMAppManifest file?
    text
    copied!<p>I've read in several place, include here <a href="http://blogs.msdn.com/b/jaimer/archive/2010/04/30/windows-phone-capabilities-security-model.aspx" rel="nofollow">http://blogs.msdn.com/b/jaimer/archive/2010/04/30/windows-phone-capabilities-security-model.aspx</a> that if a Windows Phone app doesn't need a capability, then you should remove it from the manifest.</p> <p>I have an app that I don't believe needs any of the capabilities.</p> <p>When I removed all of the capabilities from the manifest file, everything seems fine until I do one of two things.</p> <p>One, If I close and re-open the project in Visual Studio 2010, then Visual Studio complains with the following error:</p> <blockquote> <p>You are using a project created by a previous version of Windows Phone Developer Tools CTP. Your application may not run properly.</p> <p>Please edit the WMAppManifest.xml file under Properties node and insert the following elements between element as show below.</p> </blockquote> <p>and then it lists all of the capabilities.</p> <p>The second place this causes an issue is when I try to debug the app on my phone. I read here <a href="http://blog.adamnathan.net/2010/11/09/ThisAppMakesUseOfYourPhonesDataConnection.aspx" rel="nofollow">http://blog.adamnathan.net/2010/11/09/ThisAppMakesUseOfYourPhonesDataConnection.aspx</a> that I need to add this capability in the manifest if I want to debug my app on my phone even if my app doesn't need it durning normal use. This appears to be true, but it is a real hassle to have to add this capability and then remember to remove it when I want to submit my app to the marketplace. </p> <p>So what is the correct way to manage this? Will the marketplace flag my app as using all of the capabilities if I leave them in the manifest?</p> <p>[Update: 1 Jan 2011 4:58PM] While the error message tells me to add all of the capabilities back, Visual Studio will stop complaining if I add just the Networking capability.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload