Build number Format in 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 开发者_如何学Pythonto have something like [$(BuildDefinitionName)$(Date:yyyyMMdd)$(Rev:.r)_Major.Minor.Build.Revision]
Is it possible? are the macros customizable?
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.
The macros are not customizable. Microsoft provides a limited number of Build Number tokens that can be replaced in the Update Build Number activity.
精彩评论