Tuesday, October 25, 2011

Understanding the NuGet-Package Manager for .Net platform


1) What is NuGet?
NuGet is free & open source package Manager for .Net Platform to incorporate third party modules, libraries in your existing project.

2) From where to Install?
Codeplex is very good platform to host your open source project and you can find NuGet on codeplex from here.

3) How to use it?
When I was searching of it i found good article by one of my favorite technical author Scott Hanselman, He talked about NuGet and show the example how to add ELMAH(see my previous article) using NuGet here.

You can also look at this to explore NuGet with Package Management console.

4) Use with Visual Studio 2010
After installation you can find Manage NuGet Packages when you right click on your application as per shown in fig.

 
And you'll presented by dialog of Manage NuGet Package where you can search and install available packages as per shown in below fig.


You can search and install , all reference in web.config will automatically add by NuGet packages, you do not worry about that, so it's easy way to incorporate any third party module instead to do it manually.

You can also enable (View>Other Windows>Package Manger Console) and use Package Manger Consol to add any package using command line as per shown in below fig.




Hope at this point you got almost overall knowledge about NuGet. If you like it then leave your valuable feedback as well.

Cheers!






No comments: