Pages

Monday 19 September 2011

NuGet

NuGet is a Visual Studio extension that makes it easy to install and update open source libraries and tools in Visual Studio that use the .NET Framework.

If you develop a library or tool that you want to share with other developers, you create a NuGet package and store the package in a NuGet repository. If you want to use a library or tool that someone else has developed, you retrieve the package from the repository and install it in your Visual Studio project or solution.

A brief introduction to NuGet.

You can download NuGet

When you install NuGet package, it copies the library files to your solution and automatically updates your project (add references, change config files,… etc.). If you remove a package, NuGet reverses whatever changes it made so that no clutter is left.

NuGet Features :

1-  When creating a new ASP.NET MVC 3 project template with preinstalled NuGet Packages, the jQuery script libraries included in the project are actually placed there.

 

The Manage NuGet Packages Dialog Box :

Click on the Online tab to see packages available in the official feed.

Manage-NuGet-Packages-Dialog

 

Finding and Installing a NuGet Package Using the Package Manager Console:

Install, remove, and update NuGet packages using PowerShell commands.

Using PowerShell commands is required if you want to install a package without having a solution open. It's also required in some cases for packages that create commands that you can access only by using PowerShell.

See this useful link Finding and Installing a NuGet Package Using the Package Manager Console

Supported Operating Systems:

The PowerShell cmd lets require PowerShell 2.0. Therefore, NuGet requires one of the following operating systems:

  • Windows 7
  • Windows Vista SP1
  • Windows Server 2008
  • Windows Server 2008 R2
  • Windows Server 2003 SP2
  • Windows XP SP3

Useful links :

NuGet in CodePlex

The easy way to publish NuGet packages with sources

No comments: