AppxManifest - difference between identity and mp:PhoneIdentity

我们两清 提交于 2019-12-11 10:25:42

问题


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" />

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


回答1:


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

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.

This is done with the values PhoneProductId and PhonePublisherId.

Quoting the docs ( https://msdn.microsoft.com/en-us/library/windows/apps/Dn642081%28v=VS.105%29.aspx ):

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.



来源:https://stackoverflow.com/questions/27286340/appxmanifest-difference-between-identity-and-mpphoneidentity

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!