fixed version patching issue

This commit is contained in:
Federico Barresi
2018-11-07 08:45:05 +01:00
parent 88a073eded
commit 4156d5cd14

View File

@@ -1,10 +1,7 @@
$version = [System.Reflection.Assembly]::LoadFile("C:\projects\Sharp7Reactive\Sharp7.Rx\bin\Release\netstandard2.0\Sharp7.Rx.dll").GetName().Version Write-Host "Setting .nuspec version tag to $env:appveyor_build_version"
$versionStr = "{0}.{1}.{2}" -f ($version.Major, $version.Minor, $version.Build)
Write-Host "Setting .nuspec version tag to $versionStr oder $env:appveyor_build_version"
$content = (Get-Content _nuspec\Sharp7.Rx.nuspec) $content = (Get-Content _nuspec\Sharp7.Rx.nuspec)
$content = $content -replace '\$version\$',$versionStr $content = $content -replace '\$version\$', $env:appveyor_build_version
$content | Out-File _nuspec\Sharp7.Rx.compiled.nuspec $content | Out-File _nuspec\Sharp7.Rx.compiled.nuspec