如何将VSTS生成的构建版本与VS App Center中的版本相关联? [英] How can I associate the build version generated by VSTS to a release in VS App Center?

查看:72
本文介绍了如何将VSTS生成的构建版本与VS App Center中的版本相关联?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始将Visual Studio App Center集成到我的VSTS构建管道中。

I started integrating Visual Studio App Center in my VSTS build pipeline.

设置

构建我的iOS应用程序后,其二进制文件将发送到App Center。 App Center不会构建应用程序:VSTS可以。这是最新版本和版本号的屏幕截图:

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:

在Visual Studio应用中心中,我无法(重新使用)由VSTS管道实际生成的版本号。如下面的屏幕截图所示,版本值始终为 1.0(1.0)

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):

问题

在Visual Studio App Center中,如何将VSTS版本的版本号与VS App Center中的发行版关联?

In Visual Studio App Center, how can I associate the version number from the VSTS build to a release in VS App Center?

推荐答案

Visual Studio App Center应该直接从二进制文件中获取版本信息。

Visual Studio App Center is supposed to grab the version information directly from the binaries.

在我的案例中,VSTS中使用的bash脚本在 AssemblyInfo.cs Info.plist 损坏了(它不再找到文件了)。所有生成的二进制文件的版本均为 1.0

In my case, the bash script used in VSTS to apply the proper version number in the AssemblyInfo.cs and the Info.plist got broken (it was not finding files anymore). All the generated binaries had the version version 1.0.

修复脚本可以解决该问题。

Fixing the script solved the problem.

这篇关于如何将VSTS生成的构建版本与VS App Center中的版本相关联?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆