AppxManifest file not being generated correctly

余生长醉 提交于 2019-11-28 05:02:05

问题


I've been using the Visual Studio 2015 tools to create an Apache Cordova project. However, on attempting to upload my app package to the Windows Dev Center, I get this error:

3201: The publisher display name, $username$, specified in the package doesn’t match the publisher name, Ciaran, that’s associated with the developer account.

Upon examination of the source .appxmanifest file that gets generated automatically when building my application, I've found that it gets generated with placeholder variables like $username$ in place of my actual username. I've already used the 'Associate App with the Store' option and it reports success, although this doesn't seem to have any effect on the generated appxmanifest files, nor when building the application nor when creating the app package file.

I already tried contact Microsoft Support about this issue, but so far they are just linking to me documentation on the App Manifest file, which doesn't seem useful to me because the Apache Cordova project doesn't seem to give me any control over the App Manifest file. If I try to change it manually, it just gets overwritten again when the application is built.

I've tried re-creating the project and I've tried cancelling and deleting the app submission from the Windows Dev servers and trying everything all over again, but I still run into this same issue.

Any ideas?

UPDATE: I contacted Microsoft support on this issue, however I was told that the support team do not provide support for Apache Cordova projects. Additionally, I was told that submitting apps from the beta version of Visual Studio 2015 is not permitted, that submissions are only possible through the retail version of Visual Studio 2015.


回答1:


As a workaround you can use native project to create appx package.

Steps to create appx package using windows native project:

  1. Native project is located under bld\Debug\platforms\windows and it is created as a part of build process.
  2. Open CordovaApp.sln
  3. Open Create App Package wizard and follow the wizard to create appx package

  1. Grab the package from output location displayed on Package Creation Completed page.



来源:https://stackoverflow.com/questions/27462133/appxmanifest-file-not-being-generated-correctly

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