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
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.