We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04ab88b commit 7390403Copy full SHA for 7390403
Scripts/Set-Version-Number.ps1
@@ -2,11 +2,13 @@ Param(
2
[string]$NewVersion
3
)
4
5
+$versionNumber = $NewVersion -replace '^refs/tags/', ''
6
+
7
Set-Location $PSScriptRoot
8
9
Set-Location ..\Source\VisualPairCoding\VisualPairCoding.BL
10
11
$versionInformation = Get-Content VersionInformation.cs -Raw -Encoding UTF8
-$versionInformation = $versionInformation.Replace('$$VERSION$$', $NewVersion)
12
+$versionInformation = $versionInformation.Replace('$$VERSION$$', $versionNumber)
13
-$versionInformation | Set-Content VersionInformation.cs -Encoding UTF8
14
+$versionInformation | Set-Content VersionInformation.cs -Encoding UTF8
0 commit comments