Skip to content

Commit 33d9a0c

Browse files
committed
json: Fix set version script
1 parent b2403dd commit 33d9a0c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Build/set-version-UnitsNet.Serialization.JsonNet.ps1

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,10 @@ Import-Module "$PSScriptRoot\set-version.psm1"
4949
$root = Resolve-Path "$PSScriptRoot\.."
5050
$paramSet = $PsCmdlet.ParameterSetName
5151
$projFile = "$root\UnitsNet.Serialization.JsonNet\UnitsNet.Serialization.JsonNet.csproj"
52-
$versionFiles = @($projFile)
53-
$projectName = "JsonNet"
5452

55-
# Use UnitsNet.Common.props version as base if bumping major/minor/patch
53+
# Use project version as base when bumping major/minor/patch
5654
$newVersion = Get-NewProjectVersion $projFile $paramSet $setVersion $bumpVersion
5755

5856
Set-ProjectVersion $projFile $newVersion
59-
Invoke-CommitVersionBump @($projectName) $versionFiles $newVersion
60-
Invoke-TagVersionBump $projectName $newVersion
57+
Invoke-CommitVersionBump "JsonNet" $newVersion
58+
Invoke-TagVersionBump "JsonNet" $newVersion

0 commit comments

Comments
 (0)