AppxManifest - identity 和 mp:PhoneIdentity 之间的区别 [英] AppxManifest - difference between identity and mp:PhoneIdentity

查看:24
本文介绍了AppxManifest - identity 和 mp:PhoneIdentity 之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用 VS2013 for Windows Phone 创建 appx 应用程序时,AppxManifest.xml 包含以下两个条目:

When I create an appx app with VS2013 for Windows Phone, the AppxManifest.xml contains the following two entries:

<Identity Name="Something.Arbitrary" Publisher="CN=GUID-GUID-GUID" Version="1.0.0.0" />

<mp:PhoneIdentity PhoneProductId="5fbbac69-e356-41ee-af0d-0aab0eb96d7c" PhonePublisherId="00000000-0000-0000-0000-000000000000" />

Identity Name 和 PhoneIdentity 两个值有什么区别?

What is the difference between the two Identity Name and PhoneIdentity values?

推荐答案

mp:PhoneIdentity 用于,如果您更新来自旧版本的应用程序,例如Windows Phone 8.0.

mp:PhoneIdentity is used, if you update your app coming from an older version, e.g. Windows Phone 8.0.

对于较新的版本,例如 8.1 Phone 或 8.1 Universal Apps,它会创建一种新类型的应用程序二进制文件,并且无法创建指向旧商店数据的链接.例如:如果您随后测试您的 IAP,您的应用将找不到 IAP 项目.

With newer versions, like 8.1 Phone or 8.1 Universal Apps, it creates a new type of application binary and it can't create a link to the old store data. E.g.: If you then test your IAPs, your app won't find the IAP items.

这是通过值 PhoneProductId 和 PhonePublisherId 完成的.

This is done with the values PhoneProductId and PhonePublisherId.

引用文档 ( https://msdn.microsoft.com/en-us/library/windows/apps/Dn642081%28v=VS.105%29.aspx ):

PhoneProductID 和 PhonePublisherID 属性Package.appxmanifest 文件中的 mp:PhoneIdentity 元素是可用于启用这些升级方案.这些属性映射到已发布 Windows 的 ProductID 和 PublisherID 属性电话 8 应用.

The PhoneProductID and PhonePublisherID attributes of the mp:PhoneIdentity element in the Package.appxmanifest file are available to enable these upgrade scenarios. These attributes map to the ProductID and PublisherID attributes of the published Windows Phone 8 app.

这篇关于AppxManifest - identity 和 mp:PhoneIdentity 之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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