Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use NuGet?

I have installed NuGet, how to use it?

I saw the video and i tried

>Add-Package log4j
Command "Add" is not valid.
>

it does not work, I entered that in Command Window.

EDIT:

I uses VS2010 and I build WindowsForm App and not ASP.NET.

like image 371
IAdapter Avatar asked Feb 20 '11 22:02

IAdapter


1 Answers

You've got two options;

You can either use the GUI; right click on project references > Add Library Package Reference...

Or you can use the console, which has more features, but I'd not recommend it.

like image 143
driushkin Avatar answered Nov 02 '22 18:11

driushkin