added nuspec

This commit is contained in:
Federico Barresi
2018-11-06 14:11:41 +01:00
parent 4e78a995bd
commit afa0ee95e6
3 changed files with 32 additions and 0 deletions

11
_nuspec/pack.ps1 Normal file
View File

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