Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
981 views
in Technique[技术] by (71.8m points)

visual studio cordova - AppxManifest file not being generated correctly

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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 bldDebugplatformswindows 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

enter image description here

  1. Grab the package from output location displayed on Package Creation Completed page. enter image description here

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...