How to Work with NuGet?

NuGet is a Visual Studio extension and you can get it from here. It helps you to:

  1. Add library and tools to Visual Studio .Net Framework project
  2. Remove library and tools to Visual Studio .Net Framework project
  3. Update library and tools to Visual Studio .Net Framework project

NuGet does all the necessary tasks required to work with a library or tool. It:

  1. Modifies config files
  2. Add or remove references
  3. Sync updated feature with source control of the project

Downloading and Installing

To download go to http://nuget.codeplex.com/ and click on InstallNuGet.

GuNet1.gif

You will be redirected to http://visualstudiogallery.msdn.microsoft.com/27077b70-9dad-4c64-adcf-c7cf6bc9970c. You need to click download to download the NuGet Package Manager.

as1.gif

After downloading, click on the package to install.

GuNet3.gif

It will take a fraction of a second to install it.

GuNet4.gif

After successful installation if you go to Tools then Library Package Manager, you will get the option for Package Manager.

GuNet5.gif

If you want to check all the available NuGet commands, you can check as below:

GuNet6.gif

If you want to see list of packages available you can see as below. In the following command:

GuNet7.gif

In this way you can update and remove a package as well.

You can read the full documentation here. Now what are you waiting for? Go ahead and use NuGet. I hope this article will add some value to your learning.
 
Thanks for reading.

[twitter-follow screen_name='debug_mode' show_count='yes']

Up Next
    Ebook Download
    View all
    Learn
    View all