Skip to content

Commit 7390403

Browse files
committed
remove refs/tags
1 parent 04ab88b commit 7390403

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Scripts/Set-Version-Number.ps1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ Param(
22
[string]$NewVersion
33
)
44

5+
$versionNumber = $NewVersion -replace '^refs/tags/', ''
6+
57
Set-Location $PSScriptRoot
68

79
Set-Location ..\Source\VisualPairCoding\VisualPairCoding.BL
810

911
$versionInformation = Get-Content VersionInformation.cs -Raw -Encoding UTF8
10-
$versionInformation = $versionInformation.Replace('$$VERSION$$', $NewVersion)
12+
$versionInformation = $versionInformation.Replace('$$VERSION$$', $versionNumber)
1113

12-
$versionInformation | Set-Content VersionInformation.cs -Encoding UTF8
14+
$versionInformation | Set-Content VersionInformation.cs -Encoding UTF8

0 commit comments

Comments
 (0)