AppxManifest(Cordova)中Identity元素的Publisher属性

dul*_*ule 3 windows-phone cordova

我试图在Windows商店发布Windows Phone cordova应用程序.我建立应用程序:

cordova build widows --release
Run Code Online (Sandbox Code Playgroud)

上传时,我收到错误

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.
Run Code Online (Sandbox Code Playgroud)

我尝试将app与定义下一行config.xml相关联:

  <preference name="windows-publisher-id" value="-appCN-" />
Run Code Online (Sandbox Code Playgroud)

但是还有:

 <Identity Name="xxx" Publisher="CN=$username$" Version="1.0.0.0" ProcessorArchitecture="neutral" />
Run Code Online (Sandbox Code Playgroud)

在构建之后在AppxManifest.xml中.如何指定CN值?(我没有使用Visual Studio)

Gri*_*bot 5

尝试更改/platforms/windows/package.phone.appxmanifest中标记的Publisher属性Identity

编辑:现在有一个更好的解决方案(请参阅下面的cadesalaberry答案)