Skip to content

Commit b555f46

Browse files
committed
Try versioning again
1 parent dc5e7e4 commit b555f46

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Versioning/version.ps1‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
$buildSalt = $Env:BRANCH_NAME
1+
$buildSalt = $Env:BUILD_NUMBER
22
$gitVersion = git describe --tags
33
$gitSimpleVersion = git describe --tags --abbrev=0
44
$simpleVersionStandard = echo $gitSimpleVersion | Select-String -Pattern "([0-9]+)\.([0-9]+)\.([0-9]+)" | % {$_.Matches} | %{$_.Groups[1].Value+"."+$_.Groups[2].Value+"."+$_.Groups[3].Value}
55
$dotNetVersion = "$simpleVersionStandard.$buildSalt"
6-
$infoVersion = "$gitVersion" -replace "([0-9]+)\.([0-9]+)\.([0-9]+)","$dotNetVersion"
6+
$infoVersion = "$gitSimpleVersion" -replace "([0-9]+)\.([0-9]+)\.([0-9]+)","$dotNetVersion" + "$Env.BRANCH_NAME"
77

88
$fileContent = @"
99
using System.Reflection;

0 commit comments

Comments
 (0)