如何在Windows Phone7应用程序的C#中找到应用程序contentIdentifier? [英] How do I find the application contentIdentifier in C# for a Windows Phone7 app?

查看:127
本文介绍了如何在Windows Phone7应用程序的C#中找到应用程序contentIdentifier?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有几种发射器和挑肥拣瘦是采取contentIdentifier,默认为当前应用程序的contentIdentifier。 ?有没有办法找出应用程序的contentIdentifier用C#在运行时

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



我试图找出是该应用是签署并发布版本,或者它只是一个DEV构建的运行。该contentIdentifier被设定为应用程序的GUID,如果它是发布的版本。

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.

推荐答案

您不必如果你调用该市场...任务,查看详细信息以指定您的应用程序或GUID查看当前运行的应用程序。

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.

如果你离开ContentIdentifier空白OS将查找您的应用程序GUID为您和这些调用将正常工作。

If you leave ContentIdentifier blank the OS will look up your app GUID for you and these calls will work as expected.

如果您在测试中调用这些API,你会跳出卖场,但你会一个消息错误类似can'tsearch现在得到这个信息。

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.

如果您仍然需要知道实际的GUID我敢肯定,你可以在XML中的APPID属性在手机上找到这个在WMAppManifest.xml。

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.

这篇关于如何在Windows Phone7应用程序的C#中找到应用程序contentIdentifier?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆