visual-studio-cordova - AppxManifest 文件未正确生成

标签 visual-studio-cordova visual-studio-2015

我一直在使用 Visual Studio 2015 工具创建 Apache Cordova 项目。但是,在尝试将我的应用程序包上传到 Windows 开发人员中心时,出现此错误:

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

在检查构建我的应用程序时自动生成的源 .appxmanifest 文件时,我发现它是用 $username$ 等占位符变量生成的,而不是我的实际用户名。我已经使用了“将应用程序与商店关联”选项并报告成功,尽管这似乎对生成的 appxmanifest 文件没有任何影响,在构建应用程序或创建应用程序包文件时也没有。

我已经尝试就此问题联系 Microsoft 支持,但到目前为止,他们只是将 App Manifest 文件上的文档链接到我,这对我来说似乎没有用,因为 Apache Cordova 项目似乎没有给我任何帮助控制 App Manifest 文件。如果我尝试手动更改它,它只会在构建应用程序时再次被覆盖。

我已经尝试重新创建项目,我已经尝试取消并删除从 Windows 开发服务器提交的应用程序并重新尝试所有操作,但我仍然遇到同样的问题。

有什么想法吗?

更新:我就此问题联系了 Microsoft 支持,但被告知支持团队不为 Apache Cordova 项目提供支持。此外,我被告知不允许从 Visual Studio 2015 测试版提交应用程序,只能通过 Visual Studio 2015 零售版提交。

最佳答案

作为解决方法,您可以使用 native 项目来创建 appx 包。

使用windows原生项目创建appx包的步骤:

  1. native 项目位于 bld\Debug\platforms\windows 下,它是作为构建过程的一部分创建的。
  2. 打开 CordovaApp.sln
  3. 打开创建应用程序包向导并按照向导创建应用程序包

enter image description here

  1. 从包创建完成页面上显示的输出位置抓取包。 enter image description here

关于visual-studio-cordova - AppxManifest 文件未正确生成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27462133/

相关文章:

javascript - 构建空白 Cordova 应用程序会出现多个错误

google-chrome-app - 在 Visual Studio Tools for Cordova 中开发 Google Chrome 应用

cordova - 使用 Cordova 工具的 Visual Studio 的 node.js 版本是什么?

c++ - 如何修复试图包含预处理器找不到的文件的 Visual Studio 模板?

c# - 使用C#交互访问 'Internal'类

visual-studio-cordova - 无法启动 Cordova 调试到 iOS 模拟器

c# - 在 Windows Phone 上启动 pdf 文件时出现 System.Runtime.InteropServices.COMException

c++ - 尝试在 Release模式 Visual Studio 2015 上运行时出错

c++ - 是否可以在给定基数的 MSVC/VC++ 中分配内存?

c++ - Visual C++ 编译器为不明确的符号提供了错误的行引用