I'm trying to follow some guidance from this article which describes NuGet and SemVer best practices.
Point #3 states that I should "Use leading zeros in the numerical suffix to auto-increment prereleases" but I am struggling working out how I can zero pad the build.counter
parameter in TeamCity so that I get 0025
instead of 25
.
Does anyone have a mechanism to handle this?
"##teamcity[buildNumber '{0}']" -f ([Int32]%build.number%).ToString("0000") | Write-Host
– Crocein