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.

Advertisements

5 thoughts on “How to work with NuGet?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s