Skip to content

Commit 1dd9612

Browse files
committed
fixup! Fix set-version script
1 parent c4de9bc commit 1dd9612

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Build/set-version.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function Set-ProjectVersion([string] $projectPath, [string] $setVersion) {
4343
Write-Host "$projectPath -> $setVersion"
4444

4545
# Update <Version> property
46-
$projectXml.Project.PropertyGroup.Version[0] = $setVersion
46+
$projectXml | Select-Xml -XPath "//Version" | foreach {$_.node.InnerXML = $setVersion}
4747
$projectXml.Save($projectPath)
4848
}
4949

0 commit comments

Comments
 (0)