3

I downloaded zlib.NET and there's a file that I must import,its named "zlib.net.dll".

My question is :How do I import that file so I can use it in C# Express 2008 like "System.zlib.etc"?

Thanks.

Lucas
  • 17,277
  • 5
  • 45
  • 40
Ivan Prodanov
  • 34,634
  • 78
  • 176
  • 248

1 Answers1

6

You need to add a reference to the assembly:

  • Copy the DLL into some appropriate directory (I usually create a lib directory somewhere near the code).
  • Open up Visual Studio and load the solution.
  • In Solution Explorer, find the "References" item and right-click on it.
  • Select "Add Reference..."
  • Change to the "Browse" tab and navigate to the DLL

After that you should be able to use it in your code.

Jon Skeet
  • 1,421,763
  • 867
  • 9,128
  • 9,194