Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top