mirror of
https://github.com/evopro-ag/Sharp7Reactive.git
synced 2025-12-17 04:02:52 +00:00
added nuspec
This commit is contained in:
21
_nuspec/Sharp7.Rx.nuspec
Normal file
21
_nuspec/Sharp7.Rx.nuspec
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0"?>
|
||||
<package>
|
||||
<metadata>
|
||||
<id>Sharp7.Rx</id>
|
||||
<version>$version$</version>
|
||||
<title>Sharp7.Rx</title>
|
||||
<authors>evopro AG</authors>
|
||||
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||
<description>Reactive framework for Sharp7, the Ethernet S7 PLC communication suite</description>
|
||||
<projectUrl>https://github.com/evopro-ag/Sharp7Reactive</projectUrl>
|
||||
<licenseUrl>https://raw.githubusercontent.com/evopro-ag/Sharp7Reactive/master/LICENSE</licenseUrl>
|
||||
<copyright>Copyright 2018</copyright>
|
||||
<dependencies>
|
||||
<dependency id="System.Reactive" version="4.1"/>
|
||||
<dependency id="Sharp7" version="1.0"/>
|
||||
</dependencies>
|
||||
</metadata>
|
||||
<files>
|
||||
<file src="Sharp7.Rx\bin\Release\netstandard2.0\Sharp7.Rx.dll" target="lib\netstandard2.0" />
|
||||
</files>
|
||||
</package>
|
||||
BIN
_nuspec/nuget.exe
Normal file
BIN
_nuspec/nuget.exe
Normal file
Binary file not shown.
11
_nuspec/pack.ps1
Normal file
11
_nuspec/pack.ps1
Normal 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
|
||||
Reference in New Issue
Block a user