views:

62

answers:

3

I'm new in .net and I'm interesting in following. I've downloaded a library from this.

But I don't know how to import it into my project for using.

How do I do that?

+1  A: 

If you just want to add a DLL to your project, right-click it in Visual Studio's Solution Explorer, and click 'Add Reference', then select 'Browse' and locate your DLL.

Fiona Holder
+3  A: 

In the solution Explorer, select your project, then click Add Reference and select the assembly.

You can also simply add it to the project BIN folder.

Lawrence P. Kelley
And be prepared to wait a couple minutes for the damn dialog to load!!
Josh Stodola
Fixed in 2010 :D
Fiona Holder
+1  A: 

right on your project > add Reference > tab named "Brows" and you specify the dlls to import.

Caution : It's only a reference, the library file is not imported/moved in the Solution directory. So if you want to move/send your solution you should probably create a subdirectory in your solution (it's often called "libs"), add the dll inside and then add the reference.

\MySolution

...................\Libs\YourLibrary.dll

....................\YourProject...

The libs directory is a Windows directory on the file system but also a solution folder in Visual Studio (right click on the solution, add a solution folder)

http://msdn.microsoft.com/en-us/library/wkze6zky(VS.80).aspx

Matthieu