Search code examples
nugetnuget-server

How to push my Nuget package to the official gallery having my package at my own server


I have a web public folder which I use when I want to share any file so I was thinking on having my nuget package there. I tried to push it using:

nuget push Me.Utility.1.0.nupkg API_KEY -Source http://www.mywebpage.mx/packages

then it asked me for the credentials but none of the ones I put have worked (the credentials are correct). My web folder is not a nuget feed is just a web shared folder. Is not clear to me if the problem is that it should be a nuget feed (something like myget service) or which is the minimum infrastructure that I need to have since this is only one nuget package. I want to host my package at my own server and also I want my package to appear in the official gallery, so in that case should I set up my own nuget feed?
Could you please explain how this should be done?


Solution

  • MyGet.org supports pushing packages upstream, for instance to NuGet.org. Check out this blogpost to know how to do this: http://blog.myget.org/post/2012/03/01/Introducing-MyGet-package-source-proxy-(beta).aspx