4. dubna 2012 13:12When I create a Metro App with C++ language and modify the publisher to my company info, and then build it, I find the package uses an other specific string for the publisher. Such as "CN= Microsoft Corporation". I check it by reading AppxManifest.xml file located in the Output Directory, "$(OutDir)". Is this a known issue?
- Přesunutý Sheng Jiang 蒋晟MVP 4. dubna 2012 14:50 English (From:Visual C++)
5. dubna 2012 4:24
Sorry, I need update some information as following.
This issue appears when I try to create a pacake.
VS2011 has two slection, one is "Create package to upload to the Store or to use locally", the other is "Create a package to use locally only".
I select the send one.
After the package is created, I find a temporary key has been created aslo. Such as "MetroSettingApp_TemporayKey".
And the publisher name in the AppxManifest.xml file is different from the string in 'Package.appxmanifest' file.
This issue will disppear when I remove the key and just re-build the project again (not pack it again).
In the other word, I just can run the application correctly with VS2011 develop environment, but cannot pack a right package.
Are there any know about these?
Please give me some info if possible!
Thanks in advance!
6. dubna 2012 1:34
The publisher ID in the app manifest must match with the subject field of the signing certificate used to sign the package. When you create a package through Visual Studio, it automatically generates a .pfx file (this is the MetroSettingApp_TemproaryKey) if one isn't present and update the app manifest's publisher ID field with the matching string.
Note that there are two publisher-related fields in the app manifest. One is "Publisher ID" and the other one is "Publisher name". The "Publisher name" can be any arbitrary string where as the "Publisher ID" is bounded to the rule described above. In the output package, does the Publisher ID in the Appxmanifest.xml match with the subject field of the .pfx file?
20. dubna 2012 1:10
Dear Candy Chiang:
Thanks for your kindly help!
I have fixed this issue.
- Upravený xptx 20. dubna 2012 1:11