using ionic.zip.dll in vb.net

Dec 30, 2009 at 3:32 PM
Edited Dec 30, 2009 at 3:37 PM

I am writing an app and need to zip some files. I have downloaded DotNetZip and I understand what code is needed to zip folders using DotNetZip...I just don't understand how to get vb.net to USE ionic.zip.dll. I tried dragging the .dll file into the project. I tried using "imports ionic.zip.dll" and a few other things and my code still won't work. How do I properly import Ionic.zip.dll into my project so that I can reference it for zipping files?

 

For example, when I try something like:

 

 Using zip As ZipFile = New ZipFile
            zip.AddFile(filename)
            zip.Save("MyZipFile.zip")
        End Using

it tells me that 'type zipfile is not defined'.

 

Dec 30, 2009 at 6:41 PM

You have to add it in as a reference in your project.