如何从特定编号手动启动$(Rev:r)计数器? [英] How to manually start $(Rev:r) counter from specific number?

查看:78
本文介绍了如何从特定编号手动启动$(Rev:r)计数器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

说,我有一个已经是1.0.15版本的库

Say, I have a library which is already version 1.0.15

我将构建过程迁移到Azure DevOps,并希望自动增加内部版本号.因此,在构建管道选项中,我将内部版本号格式设置为1.0.$(Rev:r).

I migrate my build process to Azure DevOps, and want auto increment of build number. So in the build pipeline options, I set Build number format to 1.0.$(Rev:r).

但是现在它开始以1.0.1进行构建

But now it starts making builds at 1.0.1

那我该如何人为地将其增加到15?

So how do I artificially increment this to 15?

推荐答案

在构建定义中添加一个变量,如下所示: 然后设置内部版本号格式,如下所示:

Add a variable in your build definition like this: And then set the Build Number Format like following:

您将获得从15开始的计数器.

You will get the counter to start from 15.

这篇关于如何从特定编号手动启动$(Rev:r)计数器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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