Skip to content

Commit b2bf595

Browse files
authored
Update version.ps1 (#573)
1 parent b8f85ad commit b2bf595

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

‎Versioning/version.ps1‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
$buildSalt = $Env:BUILD_NUMBER
2-
$branchName = $Env:BRANCH_NAME
1+
$buildSalt = $ENV:BUILD_NUMBER
2+
$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+
38
$gitSimpleVersion = git describe --tags --abbrev=0
49
$simpleVersionStandard = echo $gitSimpleVersion | Select-String -Pattern "([0-9]+)\.([0-9]+)\.([0-9]+)" | % {$_.Matches} | %{$_.Groups[1].Value+"."+$_.Groups[2].Value+"."+$_.Groups[3].Value}
510
$dotNetVersion = "$simpleVersionStandard.$buildSalt"
@@ -14,4 +19,4 @@ using System.Reflection;
1419

1520
echo $fileContent | Set-Content "$PSScriptRoot/AssemblyVersion.cs"
1621

17-
echo "$infoVersion"
22+
echo "Information Version: $infoVersion"

0 commit comments

Comments
 (0)