Skip to content

Commit ce13dba

Browse files
Fix bump-version.ps1
Fix xpath to get the previous release veresion broken by #2696.
1 parent cf50bc5 commit ce13dba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eng/bump-version.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ $repo = Join-Path $PSScriptRoot ".."
99
$properties = Join-Path $repo "Directory.Packages.props"
1010

1111
$xml = [xml](Get-Content $properties)
12-
$pollyVersion = $xml.SelectSingleNode('Project/PropertyGroup/PollyVersion')
12+
$pollyVersion = $xml.SelectSingleNode("//PackageVersion[@Include='Polly']/@Version")
1313

1414
if ($ReleaseVersion.StartsWith("v")) {
1515
$ReleaseVersion = $ReleaseVersion.Substring(1)
@@ -18,7 +18,7 @@ if ($ReleaseVersion.StartsWith("v")) {
1818
$version = [System.Version]::new($ReleaseVersion)
1919
$releasedVersion = $version.ToString()
2020

21-
Write-Output "Bumping version from $($pollyVersion.InnerText) to $releasedVersion"
21+
Write-Output "Bumping version from $($pollyVersion.Value) to $releasedVersion"
2222

2323
$pollyVersion.InnerText = $releasedVersion
2424

0 commit comments

Comments
 (0)