Question

I have a Windows Phone 7 application that is not yet published and I neet to implement the functionality to invoke MarketplaceDetailTask and show the app's detail in the Marketplace.

The MarketplaceDetailTask needs a ContentIdentifier that corresponds to the GUID in Marketplace, but I do not know it yet (obviously). Some people suggest to use the GUID from the assembly but I checked my already published apps and the GUID after publishing is not the same as the assembly GUID.

I found a suggestion that invoking the MarketplaceDetailTask without setting the ContentIdentifier works and the system fills in this property automaticaly but i do not think this works.

I tried this code in an app that is already in the Markeplace and it ended with an error

MarketplaceDetailTask marketplaceDetailTask = new MarketplaceDetailTask();
marketplaceDetailTask.ContentType = MarketplaceContentType.Applications;
marketplaceDetailTask.Show();

So is there a way to use MarketplaceDetailTask for the application without knowing the GUID?

Was it helpful?

Solution

As suggested, don't specify anything for the task.

Just use:

var review = new MarketplaceReviewTask();
review.Show();

(Used in my actual WP7 app, working fine)

EDIT: Here's a link for the official documentation that explains the use of this task.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top