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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With