我正在尝试在 Windows 商店上发布 Windows Phone Cordova 应用程序。 我使用以下方式构建应用程序:
cordova build widows --release
上传时出现错误
Package acceptance validation error: The Publisher attribute of the Identity element in the app manifest of file CordovaApp.xxx.appx is CN=$username$, which doesn't match your publisher ID: CN=xxxxxxxxxxxxx.
我尝试将应用程序与定义下一行 config.xml 关联起来:
<preference name="windows-publisher-id" value="-appCN-" />
但是还有:
<Identity Name="xxx" Publisher="CN=$username$" Version="1.0.0.0" ProcessorArchitecture="neutral" />
构建后在 AppxManifest.xml 中。 如何指定 CN 值? (我没有使用 Visual Studio)
最佳答案
尝试更改/platforms/windows/package.phone.appxmanifest 中 Identity
标记的 Publisher
属性
编辑: 现在有一个更好的解决方案(请参阅下面 cadesalaberry 的回答)
关于cordova - AppxManifest (Cordova) 中 Identity 元素的 Publisher 属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33371406/