Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to import a net assembly

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.

like image 366
Ivan Prodanov Avatar asked Dec 29 '25 06:12

Ivan Prodanov


1 Answers

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.

like image 176
Jon Skeet Avatar answered Dec 31 '25 22:12

Jon Skeet