I started integrating Visual Studio App Center in my VSTS build pipeline.
Setup
After my iOS application is built, its binaries are sent to App Center. App Center does not build the app: VSTS does. Here is a screenshot of the latest builds and the version numbers:
In Visual Studio App Center, I can't (re)use version number actually generated by the VSTS pipeline. As shown in the screen capture below, the version value is always 1.0 (1.0)
:
Question
In Visual Studio App Center, how can I associate the version number from the VSTS build to a release in VS App Center?
Check the solution in case Auto incrementing build number for appxbundle package when deploying to appcenter via vsts:
You can update the version through PowerShell (add PowerShell task to build definition), the sample scripts: UpdateVersion.ps1
More information, you can refer to this article: Set up a continuous deployment build for sideloading
Visual Studio App Center is supposed to grab the version information directly from the binaries.
In my case, the bash script used in VSTS to apply the proper version number in the
AssemblyInfo.cs
and theInfo.plist
got broken (it was not finding files anymore). All the generated binaries had the version version1.0
.Fixing the script solved the problem.