diff --git a/_nuspec/Sharp7.Rx.nuspec b/_nuspec/Sharp7.Rx.nuspec new file mode 100644 index 0000000..aaff9e3 --- /dev/null +++ b/_nuspec/Sharp7.Rx.nuspec @@ -0,0 +1,21 @@ + + + + Sharp7.Rx + $version$ + Sharp7.Rx + evopro AG + false + Reactive framework for Sharp7, the Ethernet S7 PLC communication suite + https://github.com/evopro-ag/Sharp7Reactive + https://raw.githubusercontent.com/evopro-ag/Sharp7Reactive/master/LICENSE + Copyright 2018 + + + + + + + + + \ No newline at end of file diff --git a/_nuspec/nuget.exe b/_nuspec/nuget.exe new file mode 100644 index 0000000..a34c367 Binary files /dev/null and b/_nuspec/nuget.exe differ diff --git a/_nuspec/pack.ps1 b/_nuspec/pack.ps1 new file mode 100644 index 0000000..3aa7569 --- /dev/null +++ b/_nuspec/pack.ps1 @@ -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 \ No newline at end of file