use commit count as revision number
This commit is contained in:
parent
797e436547
commit
f88c9a88f2
2 changed files with 3 additions and 5 deletions
|
@ -8,10 +8,9 @@ $MajorVersion = 1
|
|||
$MinorVersion = 0
|
||||
$PatchVersion = 0
|
||||
|
||||
#TODO @krwq is working on this
|
||||
$CommitCountVersion = 0
|
||||
$CommitCountVersion = (git rev-list --count HEAD).PadLeft(6, "0")
|
||||
|
||||
# Zero Padded Suffix for use with Nuget
|
||||
$VersionSuffix = "$ReleaseSuffix-{0:D6}" -f $CommitCountVersion
|
||||
$VersionSuffix = "$ReleaseSuffix-$CommitCountVersion"
|
||||
|
||||
$env:DOTNET_BUILD_VERSION = "$MajorVersion.$MinorVersion.$PatchVersion.$CommitCountVersion"
|
|
@ -9,7 +9,6 @@ export MAJOR_VERSION=1
|
|||
export MINOR_VERSION=0
|
||||
export PATCH_VERSION=0
|
||||
|
||||
#TODO @krwq is working on this
|
||||
export COMMIT_COUNT_VERSION=0
|
||||
export COMMIT_COUNT_VERSION=$(printf "%06d" $(git rev-list --count HEAD))
|
||||
|
||||
export DOTNET_BUILD_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_VERSION.$COMMIT_COUNT_VERSION
|
||||
|
|
Loading…
Add table
Reference in a new issue