Windows Phone 应用程序*实例* ID

发布于 2024-12-27 16:06:05 字数 414 浏览 3 评论 0原文

有没有办法以编程方式访问应用程序实例 ID?

当应用程序被市场接受时,它会获得两个唯一的 ID。第一个是应用程序 ID,它被插入到 WMAppManifest.xml 的 Deployment > 下。应用程序>产品 ID。此 ID 是在您的应用程序第一次被接受时分配的,并且不会更改。

第二个是应用程序实例 ID,它唯一标识您已部署的应用程序的特定版本。每次更新应用程序时,您都会获得一个新的应用程序实例 ID。这就是手机如何知道您正在运行的应用程序版本的方式。

我的目标是唯一地标识应用程序的特定版本,而无需手动执行任何操作(例如,这可以通过组合同一 xml 标记中的 ProductId 和 Version 轻松完成;但只有在增加版本时才有效。)

Is there a way to programmatically access the application instance id?

When an app is accepted into the marketplace, it gets has two unique ids. The first is the application id, which gets inserted into WMAppManifest.xml under Deployment > App > ProductId. This id is assigned the first time your app is accepted, and does not change.

The second is the application instance id, which uniquely identifies the particular version of the app you have deployed. You get a new application instance id every time you update your app. This is how the phone knows which version of the app you are running.

My goal is to uniquely identify a particular version of an app without having to do anything manually (ex. this could easily be done by combining the ProductId and the Version from the same xml tag; but that only works if you increment the version.)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

最初的梦 2025-01-03 16:06:05

应用程序实例 ID 不会在平台中公开。但是,由于您在将应用程序提交到市场时必须始终递增应用程序的版本,因此 { AppId, Version } 元组(这两个值都可以在 WMAppManifest.xml 中读取)唯一标识应用程序实例。

The application instance id is not exposed in the platform. However, because you must always increment the version of your app when submitting it to the marketplace, the { AppId, Version } tuple (both values can be read in WMAppManifest.xml) uniquely identifies the app instance.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文