Is there a way of formatting the revision in a Build Number Format to always be three digits long starting from 1000?
I have $(Rev:.r) which adds .1 and .2 to concurrent builds.
I want this to be .1001
This is TFS 2013.
I have tried .1rrr and get the exception
Exception Message: Unable to expand the macro $(Rev:.1rrr) specified in build number format
Use the following:
$(Rev:.1rrr)
(Tested on VS Online)
The caveat here is that this won't rollover to 2000 if you are doing more than 999 builds in a day.
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