2018-01-28 00:40:49 +01:00
|
|
|
### 1. Pack:
|
|
|
|
```
|
2018-02-15 09:40:35 +01:00
|
|
|
dotnet pack Sieve.csproj -c Release -o . /p:PackageVersion=1.3.92
|
2018-01-28 00:40:49 +01:00
|
|
|
```
|
2018-01-28 00:57:15 +01:00
|
|
|
Don't forget to change version since nuget packages are immutable (add one to the nuget current).
|
2018-01-28 00:40:49 +01:00
|
|
|
|
|
|
|
### 2. Manually add nuspec:
|
|
|
|
For some reason `dotnet pack` chooses to ignore my Sieve.nuspec.
|
|
|
|
So unpack the Sieve.1.2.0.nupkg, and replace the nuspec in there with the local one.
|
|
|
|
Don't forget that if you add new dependencies, you'll need to declare them in the nuspec.
|
2018-01-28 00:57:15 +01:00
|
|
|
Also don't forget updating the version number in nuspec.
|
2018-01-28 01:02:04 +01:00
|
|
|
Also don't forget updaing `releaseNotes` in nuspec.
|
2018-01-28 00:40:49 +01:00
|
|
|
|
|
|
|
### 3. Publish:
|
|
|
|
```
|
2018-02-15 09:40:35 +01:00
|
|
|
nuget push Sieve.1.3.92.nupkg API_KEY -Source https://api.nuget.org/v3/index.json
|
2018-01-28 00:40:49 +01:00
|
|
|
```
|
|
|
|
Replace API_KEY with one you get from nuget's website.
|
2018-01-28 00:57:15 +01:00
|
|
|
Also don't forget to replace corresponding version.
|