本文介绍了如何以特定编号启动vNext TFS 2015构建版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用TFS 2015的vNext构建系统.

I am using the vNext build system of TFS 2015.

我目前使用传统格式的版本进行版本控制. Major.Minor-rev.RevisionNumber.因此,如果我有针对Major 1,Minor 12的构建,则当我开始时,构建版本将看起来像1.12-rev.1.我想知道是否有可能使构建版本的起始编号不是1,例如55.这样构建版本看起来就像1.12-rev.55,然后像往常一样增加一个./p>

I currently have the my builds versioning in the traditional format. Major.Minor-rev.RevisionNumber. So, if I have a build for Major 1, Minor 12, the build version would look like 1.12-rev.1 when I start. I would like to know if it is possible to have the build version start at a number other than one, say 55. Such that the build version would look like 1.12-rev.55, and then increment by one as usual after that.

推荐答案

不幸的是,这是不可能的.

Unfortunately, it's impossible.

每个内部版本定义都有一个内部版本号格式字段,您可以在其中使用一些宏来指示生成的内部版本号应为什么样.在这种格式中,我们使用的是$(Rev:.rr),它以一个开头.

Every build definition has a build number format field where you can use some macros to dictate what the resulting build number should look like. In this format we are using $(Rev:.rr) Its start by one.

确保每个完成的构建都有唯一的名称.建立时完成后,如果内部版本号没有其他更改,则修订版整数值加一.

To ensure that every completed build has a unique name. When a buildis completed, if nothing else in the build number has changed, the Revinteger value is incremented by one.

来源: MSDN

此外,如果要生成自定义内部版本号而不递增.这是一个包含详细步骤的博客:在TFS Build vNext中生成自定义内部版本号

Moreover, if you want to generating a custom build number without increment.Here is a blog with detailed procedures:Generate custom build numbers in TFS Build vNext

这篇关于如何以特定编号启动vNext TFS 2015构建版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 11:53