How to associate repository with package?

I have a number of repositories on GitHub, and virtually all of them have been published as packages on NuGet. My packages combined are coming up on 20,000 downloads.

But when I look at any of my repositories, I see this:

Packages
No packages published
Publish your first package

When I click Publish your first package, I’m not entirely clear on what we’re doing.

Is there a way to associate my repositories with their existing NuGet packages?

1 Like

@softcircuits,

Is there a way to associate my repositories with their existing NuGet packages?

If you add the following property to your project, you will be able to publish the package to GitHub Packages.

<RepositoryUrl>https://github.com/OWNER/REPOSITORY</RepositoryUrl>

See here for more info:

At the moment there aren’t any automatic connections between packages published to nuget.org and GitHub Packages.

GitHub Packages can be a good place to publish work-in-progress packages before the release version is published to nuget.org.