mirror of
https://github.com/Biarity/Sieve.git
synced 2025-01-19 08:31:54 +01:00
Update publishing_to_nuget.md
This commit is contained in:
parent
e6d170888b
commit
cecba9b1c6
@ -2,16 +2,17 @@
|
|||||||
```
|
```
|
||||||
dotnet pack Sieve.csproj -c Release -o . /p:PackageVersion=1.2.0
|
dotnet pack Sieve.csproj -c Release -o . /p:PackageVersion=1.2.0
|
||||||
```
|
```
|
||||||
Don't forget to change version since nuget packages are immutable.
|
Don't forget to change version since nuget packages are immutable (add one to the nuget current).
|
||||||
|
|
||||||
### 2. Manually add nuspec:
|
### 2. Manually add nuspec:
|
||||||
For some reason `dotnet pack` chooses to ignore my Sieve.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.
|
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.
|
Don't forget that if you add new dependencies, you'll need to declare them in the nuspec.
|
||||||
|
Also don't forget updating the version number in nuspec.
|
||||||
|
|
||||||
### 3. Publish:
|
### 3. Publish:
|
||||||
```
|
```
|
||||||
nuget push Sieve.1.2.0.nupkg API_KEY -Source https://api.nuget.org/v3/index.json
|
nuget push Sieve.1.2.0.nupkg API_KEY -Source https://api.nuget.org/v3/index.json
|
||||||
```
|
```
|
||||||
Replace API_KEY with one you get from nuget's website.
|
Replace API_KEY with one you get from nuget's website.
|
||||||
Also don't forget to replace corresponding version.
|
Also don't forget to replace corresponding version.
|
||||||
|
Loading…
Reference in New Issue
Block a user