Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / Visual-Studio

How to Install NuGet Packages Directly

5.00/5 (1 vote)
23 Apr 2013MIT1 min read 25.8K  
How to install NuGet packages directly

If you are developing applications using VS 2010 Express editions, you will miss the Package Manager console, which helps us to install libraries or packages via NuGet. The Nuget package manager console is not integrated to VS 2010 Express editions (Visual Web Developer Express is an exception, it has a package manager console integration). To overcome this issue, I found some workarounds like create project in VS C# Express edition, open the same project in VS Web Developer Express and install package(s) using NuGet. But I don’t feel that is a good solution to the problem. Later, I found a nice solution using NuGet command line option. You can download the NuGet.exe from Codeplex.

You can download any package from NuGet.org using the following command.

Bash
Nuget.exe install <package name>

Using Nuget.exe, you can see the list of assemblies using list command option.

Bash
NuGet.exe list <package name>

Currently, there is no command to delete an installed package using NuGet.exe, instead you can delete the folder directly.

Here is the screen shot NuGet.exe installing jQuery.Validation from NuGet.org.

NuGet commandline

Related Content

  1. The hash value is not correct – Silverlight Installation Error
  2. Web application testing using WatiN and C#
  3. MSTest.exe does not deploy all items
  4. WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for ‘jquery’
  5. How to integrate FxCop to Visual Studio 2010 Professional

License

This article, along with any associated source code and files, is licensed under The MIT License