How do I find the application contentIdentifier in C# for a Windows Phone7 app?

You don't need to specify your app GUID if you're calling the Marketplace... tasks to see details or review the currently running app.

Up vote 2 down vote favorite share g+ share fb share tw.

There are several Launchers and choosers that take a contentIdentifier and defaults to the current application's contentIdentifier. Is there a way to find out the application's contentIdentifier with C# at runtime? MarketplaceDetailTask marketplaceDetailTask = new MarketplaceDetailTask(); marketplaceDetailTask.

ContentIdentifier I am trying to find out is the app is the signed and released version or if it's just a DEV build that's running. The contentIdentifier is set to the app GUID if it is the released version. C# silverlight windows-phone-7 link|improve this question edited Jul 30 '11 at 9:20Henk Holterman98k553126 asked Jul 30 '11 at 4:24JohnEgbert803417 81% accept rate.

You don't need to specify your app GUID if you're calling the Marketplace... tasks to see details or review the currently running app. If you leave ContentIdentifier blank the OS will look up your app GUID for you and these calls will work as expected. If you call these APIs in testing you'll jump out to the Marketplace but you'll a messagebox error something like "can'tsearch get this information right now".

So for this scenario you don't need to know if you're on a dev phone or not. If you still need to know the actual GUID I'm pretty sure you can find this in the WMAppManifest. Xml on the phone in the appId attribute in the XML.

Yeah, I know that is the case. The MarketplaceDetailTask was just an example of the data(GUID) I am looking for. I want to know how to find the current application contentIdentifier/GUID.

– JohnEgbert Jul 30 '11 at 21:06 OK I've updated the answer - you can search in the app manifest which will have the "official" GUID once published. – Paul Annetts Jul 30 '11 at 22:35 Is there an API in C# to access the AppManifest? – JohnEgbert Jul 31 '11 at 19:21.

If you really need to do this you can read it from the manifest. The coding 4 fun toolkit has already implemented this and there's a good explanation at windowsphonegeek.com/articles/Getting-da....

I understand the GUID gets changed as part of the submission/approval process – ZombieSheep Feb 2 at 10:04 @ZombieSheep yes, the whole contents of WMAppManifest is rewritten as part of the certification process. It is the rewritten one which will be in the xap and then installed on the users device. It's the installed one which will be read.

– Matt Lacey Feb 2 at 11:09 Thanks Matt - I thought that would be the case but wanted to check. I was about to submit a beta app to double check, but I don't need to do that now. :) – ZombieSheep Feb 2 at 11:18.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions