Skip to main content

How to Publish a Nuget package in NuGet Gallery?


Nuget Tutorial — Learn how to publish a Nuget package in NuGet gallery.

Step 1 - Create an account at NuGet.org

Head over to http://nuget.org/ and register for an account. Once you do that, click on "My Account" to see an API Key that was generated for you.

Step 2 - In a command console, run the command:

$ nuget setApiKey Your-API-Key Read more click here

Reference:- This article was originally posted on scmGalaxy.com


Comments

mamali prusty said…
This article gave a clear and easy‑to‑follow explanation of how to publish a NuGet package. I liked that the steps were written in simple language, so even someone new to .NET and package publishing can understand them without feeling lost. The examples made it easier to see what needs to be done in real projects. As someone learning about package management, this guide helped me learn something useful without confusion. Thank you for sharing this helpful and practical information—it will be very useful for readers who want to start publishing their own packages.