.net - Setting a date and revision number as variables in tfs 2017 -
i want create variable named nugetversionnumber value date format of $(date:yyyy.mm.dd)$(rev:.rr) revision @ end.
e.g.
2018.8.23.1
how set process variable construct format without changing build.buildnumber variable?
it's not able directly use $(date:yyyy.mm.dd)$(rev:.rr)
user-defined variables. (date:yyyymmdd)
token of build number format not general variable.
the way setting build number (date:yyyy.mm.dd)$(rev:.rr)
format. , directly use $(build.buildnumber)
variable .
since going use nuget package version. directly check use build number version package in nuget package task.
to use build number, check use build number version package box , follow line's instructions (hover on blue i icon) set build version format string. must set build version format string have @ least 3 parts separated periods avoid error in nuget packaging. default build version format string
$(date:yyyymmdd)$(rev:.r)
, simple change add 0 @ end , period between date , build counter:$(date:yyyymmdd).$(rev:.r).0
.
wiki
Comments
Post a Comment