1 parent dc5e7e4 commit b555f46Copy full SHA for b555f46
1 file changed
Versioning/version.ps1
@@ -1,9 +1,9 @@
1
-$buildSalt = $Env:BRANCH_NAME
+$buildSalt = $Env:BUILD_NUMBER
2
$gitVersion = git describe --tags
3
$gitSimpleVersion = git describe --tags --abbrev=0
4
$simpleVersionStandard = echo $gitSimpleVersion | Select-String -Pattern "([0-9]+)\.([0-9]+)\.([0-9]+)" | % {$_.Matches} | %{$_.Groups[1].Value+"."+$_.Groups[2].Value+"."+$_.Groups[3].Value}
5
$dotNetVersion = "$simpleVersionStandard.$buildSalt"
6
-$infoVersion = "$gitVersion" -replace "([0-9]+)\.([0-9]+)\.([0-9]+)","$dotNetVersion"
+$infoVersion = "$gitSimpleVersion" -replace "([0-9]+)\.([0-9]+)\.([0-9]+)","$dotNetVersion" + "$Env.BRANCH_NAME"
7
8
$fileContent = @"
9
using System.Reflection;
0 commit comments