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

Creating a Self-Updating Application Using NuGet

In addition to distributing plug-ins, why not distribute your application itself through NuGet? In fact, the NuGet command line is nothing more than a small bootstrapper downloading the NuGet.CommandLine package from the official NuGet package source on first run. The nuget update -self command does the exact same thing and updates the NuGet.CommandLine package to its latest version.

In this section, we’ll use the NuGet source code that you can find at https://hg01.codeplex.com/nuget. You can clone this URL using Mercurial. To clone the NuGet repository, simply run the following command using the hg executable in a command prompt, while making sure you are in the directory into which you want to ...

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