Hacky way to get version into the nuspec (seems the whole -replace syntax isn't working as it were)

This commit is contained in:
Christoph Wille 2019-05-05 20:06:28 +02:00
Родитель 1da8e0dc62
Коммит e7842f4c71
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -15,8 +15,9 @@ if ($semver) {
Write-Host "Setting .nuspec version tag to $versionStr"
$versionStr = "<version>" + $versionStr + "</version>"
$content = (Get-Content $root\packages\AvalonEdit.nuspec)
$content = $content -replace '\$version\$',$versionStr
$content = $content -replace '\<version\>.*?\</version\>',$versionStr
$content = $content -replace '\$releasenotes\$',$env:APPVEYOR_REPO_COMMIT_MESSAGE
$content | Out-File $root\packages\AvalonEdit.compiled.nuspec