NuGet Package on GitHub

  1. Develop a NuGet package.

  2. Publish the NuGet package(s) to https://nuget.pkg.github.com/<ORGANIZATION>/index.json.

  3. Add this as a source with dotnet CLI.

$ nuget add source https://nuget.pkg.github.com/<ORGANIZATION>/index.json --name github.com/<ORGANIZATION> ---username <organization> --password <PERSONAL_ACCESS_TOKEN>

If you are not using Windows, you may need to use the --store-password-in-clear-text option.

  1. Install the package as usual.
$ dotnet tool install --global MyNugetPackage

References


62 Words

2021-03-28 03:07 +0000