在 Azure DevOps 中共享版本信息

Share version information in Azure DevOps

我使用 Xamarin Android 编写了一个小型 Android 应用程序。正如标题所示,我将 Azure DevOps 用作 CI 和发布管道。最终签名的 APK 作为 GitHub 版本发布。

现在我想集中版本信息。目前AndroidManifest.xml和GitHubrelease版本中的Android版本信息是独立的,需要手动同步。

我该怎么做?显然,我可以这样做:

  1. 将版本信息集中在一个文件中
  2. 读取文件作为 Azure DevOps 中的构建步骤
  3. 将提取的信息传递到 Xamarin 构建步骤和 GitHub 发布步骤。

有没有built-in没有这个手工仪式的方法?

我不确定 built-in 方式,但有 this extension (Mobile App Tasks for iOS and Android) for Azure DevOps which provides a 'Bump Version' function. There is a blog post and video about it here