Search code examples
wpfazure-devopsazure-pipelines-release-pipelinehockeyapp

Getting error "Version could not be created from build" while deploying WPF app to Hockeyapp via VSTS


Everything works fine when I deploy using Visual Studio "Distribute to HockeyApp" option in VS project. But when I do the same using VSTS

HTTP status code: 422. Responce: {"status":"error","message":"Version could not be created from build."}

Can anyone please help me?

Adding build config. enter image description here


Solution

  • The error message already indicated the root cause: It cannot find the build version.

    If you click on the icon after "Binary File Path", you'll find that it is used to deploy .apk, .ipa and .appx files. These kinds of files include a version in the packages. I suspect that it is a limitation with the task when deploy zip files since zip files does not include the version information. And when you deploy from Visual Studio, it requires you to enter the version manually.