Click here to Skip to main content
15,886,110 members
Articles / Visual Studio

How to Install NuGet Packages Directly

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
23 Apr 2013MIT1 min read 25.3K   4   1
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


Written By
Technical Lead
India India
Working as Tech. Lead

My blog : dotnetthoughts.net.
You can follow me in twitter : @anuraj

Comments and Discussions

 
PraiseMy vote of 5! Pin
jediYL27-Jan-16 22:04
professionaljediYL27-Jan-16 22:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.