1 parent b8f85ad commit b2bf595Copy full SHA for b2bf595
1 file changed
Versioning/version.ps1
@@ -1,5 +1,10 @@
1
-$buildSalt = $Env:BUILD_NUMBER
2
-$branchName = $Env:BRANCH_NAME
+$buildSalt = $ENV:BUILD_NUMBER
+$branchName = $ENV:BRANCH_NAME
3
+
4
+# Writing build salt and branch name
5
+Write-Host "Build Salt: $buildSalt"
6
+Write-Host "Branch Name: $branchName"
7
8
$gitSimpleVersion = git describe --tags --abbrev=0
9
$simpleVersionStandard = echo $gitSimpleVersion | Select-String -Pattern "([0-9]+)\.([0-9]+)\.([0-9]+)" | % {$_.Matches} | %{$_.Groups[1].Value+"."+$_.Groups[2].Value+"."+$_.Groups[3].Value}
10
$dotNetVersion = "$simpleVersionStandard.$buildSalt"
@@ -14,4 +19,4 @@ using System.Reflection;
14
19
15
20
echo $fileContent | Set-Content "$PSScriptRoot/AssemblyVersion.cs"
16
21
17
-echo "$infoVersion"
22
+echo "Information Version: $infoVersion"
0 commit comments