我开始将 Visual Studio App Center 集成到我的 VSTS 构建管道中。
设置
构建我的 iOS 应用程序后,它的二进制文件被发送到 App Center。 App Center 不构建应用程序:VSTS 构建应用程序。这是最新版本和版本号的屏幕截图:
在 Visual Studio App Center 中,我无法(重新)使用 VSTS 管道实际生成的版本号。如下面的屏幕截图所示,版本值始终为 1.0 (1.0)
:
问题
在 Visual Studio App Center 中,如何将 VSTS 构建版本号关联到 VS App Center 中的版本?
最佳答案
Visual Studio App Center 应该直接从二进制文件中获取版本信息。
在我的例子中,VSTS 中用于在 AssemblyInfo.cs
和 Info.plist
中应用正确版本号的 bash 脚本被破坏了(它没有找到文件了)。所有生成的二进制文件的版本为 1.0
。
修复脚本解决了问题。
关于continuous-integration - 如何将 VSTS 生成的构建版本关联到 VS App Center 中的发布?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51341790/