我尝试遵循
- task: AppCenterDistribute@3
inputs:
serverEndpoint: 'AppCenter-Connection'
appSlug: 'Organisation/TestHarness'
appFile: '$(Build.ArtifactStagingDirectory)/$(Build.BuildNumber).zip'
releaseNotesOption: 'input'
releaseNotesInput: 'Build $(Build.BuildNumber)'
destinationType: 'groups'
但我收到错误
##[错误]"{\"错误\":\"错误:主体中缺少必需的参数:build_version,服务 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 。看来问题与签名有关。
请检查上述链接中的解决方案(例如修复代码签名/创建 plist 文件)是否也适合您。
关于azure-pipelines - 是否可以通过azure管道将zip文件推送到应用程序中心?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61994896/