O'Reilly logo

Pro NuGet by Xavier Decoster, Maarten Balliauw

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Publishing Packages Using the NuGet Command Line

While there's no doubt it is useful to be able to publish a NuGet package to the official NuGet package source using your browser, it is not the most convenient way to publish NuGet packages, not to mention the fact that you can't automate this process. Also, publishing a package through your web browser probably takes more time than doing so using a command line tool. This section will show you how you can use the NuGet command line to publish packages to any NuGet feed.

Publishing a Package to a NuGet Feed

To get you started quickly, issue the following command on a console using the NuGet command line:

nuget push ProNuGetStringExtensions.1.0.nupkg

As you can see in Figure 4-8, this command ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required