如何重置在TFS 2010版本号 [英] How to reset build number in TFS 2010

查看:314
本文介绍了如何重置在TFS 2010版本号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以重置2010 TFS版本号。

Can I reset build number in TFS 2010.

和另外一个问题。
如果项目有多个版本的定义,我可以保持内部版本号为每个构建定义。
不创建自定义活动

And another question. If Project have several build definitions, Can I keep build number for each build definition. Not create custom activity

推荐答案

该版本号使用您在构建定义指定版本号模板中设置。当编辑生成定义到进程选项卡 - >构建号格式字段,你可以定制你想要的版本号看起来像

The build number is set using the build number template that you specify in the Build Definition. When editing your Build Definition go to the Process tab -> Build Number Format field and you can customize what you want the build numbers to look like.

默认格式是:$(BuildDefinitionName)_ $(日期:年月日)$(修订:.R)

The default format is: $(BuildDefinitionName)_$(Date:yyyyMMdd)$(Rev:.r)

这将给你comprsied你生成定义名称的版本号,当前日期,并在年底的数字修订,以确保唯一性。

Which will give you a build number comprsied of your Build Definition Name, the current date, and a numeric revision on the end to ensure uniqueness.

这篇关于如何重置在TFS 2010版本号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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