hunterex
hunterex

Reputation: 595

How to publish a nuget package privately using Nuget Gallery

I have created a nuget package and I want to share it with my team using Nuget Gallery.

I need to publish the nuget package privately. So I have managed to build the Nuget Gallery from Nuget Gallery build steps When I run the build, Google Chrome shows up with "localhost" website address showing Nuget Gallery.

1) How do I add the nuget package that I have created recently to the local Nuget Gallery? 2) How do I publish the Nuget Gallery and share with my team after I have managed to add nuget package in that gallery?

Thanks

Upvotes: 0

Views: 3589

Answers (2)

Florian SANTI
Florian SANTI

Reputation: 551

You can also create your own Nuget server running in your local network by using the Microsoft NuGet.Server available in nuget.org ;-)

Upvotes: 1

zivkan
zivkan

Reputation: 15086

If you haven't seen it already, have a look at the docs on hosting a private nuget feed. TeamCity has a NuGet feed built-in, so you may not need to host a NuGetGallery yourself.

Depending on where/how you host your private feed, it might have a UI that you can use to upload packages (such as the NuGet Gallery). But if you're creating packages as part of a CI pipeline, it's probably easier to just use nuget push and use the -Source parameter to specify which source you want to push to, assuming your nuget.config has more than once source defined.

Upvotes: 0

Related Questions