Skip to main content

Updating NuGet Package

1. Clone project repository

UploadProject repository can be seen from package details in Agate Nuget page

Untitled

2. Doing Changes on Project

  • Restore project : dotnet restore
  • Implement changes
  • Save

3. Update Package Details

  • Right click on Project, select Properties

  • In ProgressPackage section select General

  • Please update this value :

    Property NameExample Value

    | PackageVersion | 1.0.2 increase the value based on changes you made | | Authors | Agate Epic Teams, Baban this is optional, you can append your name in it | | Release Notes | Added new module specifies the changes of this release |

  • Save .csproj file

  • Run the pack command

    • In Build menu > select Pack
    • Take a look in output window
  • After it succeed, go to the project folder in explorer > bin > Debug

  • You will see .nupkg file is created

  • Now you can Push .nupkg file into Agate Nuget with command:

    dotnet nuget push -s https://nuget-global.agate.id/v3/index.json -k <NUGET-SERVER-KEY> Agate.Netcore.MySql.Repository.Core.1.0.2.nupkg
    

4. Push Project Back to Gitlab Repo

After making sure your package is up to Agate Nuget , you can push your project back to repo

Done