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 c4de9bc commit 1dd9612Copy full SHA for 1dd9612
Build/set-version.psm1
@@ -43,7 +43,7 @@ function Set-ProjectVersion([string] $projectPath, [string] $setVersion) {
43
Write-Host "$projectPath -> $setVersion"
44
45
# Update <Version> property
46
- $projectXml.Project.PropertyGroup.Version[0] = $setVersion
+ $projectXml | Select-Xml -XPath "//Version" | foreach {$_.node.InnerXML = $setVersion}
47
$projectXml.Save($projectPath)
48
}
49
0 commit comments