是否可以通过 azure 管道将 zip 文件推送到应用程序中心?

Is it possible to push a zip file to app center through azure pipeline?

我尝试关注

- task: AppCenterDistribute@3
  inputs:
    serverEndpoint: 'AppCenter-Connection'
    appSlug: 'Organisation/TestHarness'
    appFile: '$(Build.ArtifactStagingDirectory)/$(Build.BuildNumber).zip'
    releaseNotesOption: 'input'
    releaseNotesInput: 'Build $(Build.BuildNumber)'
    destinationType: 'groups'

但是我得到了错误

##[error]"{\"error\":\"Error: Missing required params from body: build_version, Service id: f734ab18-06ca-4882-a3fb-14cc2a7897897\"}"

它能够推送 zip 文件。如果您使用的平台是 WPF 或 WinForms。请明确添加构建版本:

buildVersion

(Optional) The build version of the uploading binary which needs to be specified for .zip and .msi. This value will be ignored unless the platform is WPF or WinForms.

否则,请在此处查看此类似问题:Missing required params from body。似乎问题与签名有关。

请检查上面 link 中的解决方案,例如修复代码 signing/create plist 文件是否也适用于您。