Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Build number Format in TFS

Tags:

c#

build

tfs

I want to include the version number of a specific assembly in my Build defintion number format, for example, instead of having the default [$(BuildDefinitionName)$(Date:yyyyMMdd)$(Rev:.r)] i want to have something like [$(BuildDefinitionName)$(Date:yyyyMMdd)$(Rev:.r)_Major.Minor.Build.Revision]

Is it possible? are the macros customizable?

like image 876
Zee99 Avatar asked Jun 22 '11 09:06

Zee99


2 Answers

Try Creating A New Build Number Generation Scheme. I believe this is what you are looking for.

If you are still using a .proj due to an upgrade template all you do is create a custom task that inherits from Microsoft.Build.Utilities.Task and you can set that information there.

Hope that helps.

like image 115
Mike Veigel Avatar answered Oct 31 '22 16:10

Mike Veigel


The macros are not customizable. Microsoft provides a limited number of Build Number tokens that can be replaced in the Update Build Number activity.

like image 42
jpvantuyl Avatar answered Oct 31 '22 16:10

jpvantuyl