How to work with NuGet?

NuGet is a visual studio extension and you can get it from here. It helps you

  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

  • Modifies config files
  • Add or remove references
  • Sync updated feature with source control of the project

Downloading and Installing

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

clip_image001

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

clip_image003

After downloading click package to install .

clip_image004

It will take fraction of seconds to install it.

clip_image005

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

clip_image006

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

clip_image007

If you want to see list of package available you can see as below. In below command

clip_image008

You can install a package with below command

clip_image010

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

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

5 responses to “How to work with NuGet?”

  1. […] can get Windows Azure Storage Client Library and install it using NuGet. Read more about NuGet here. Once you have installed NuGet go ahead and create a Windows Phone 7.1 application by choosing […]

  2. So true. Thank you so much for this information!

Leave a comment

Create a website or blog at WordPress.com