Results 1 to 3 of 3

Thread: [RESOLVED] Using DotNetZip

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2010
    Posts
    56

    Resolved [RESOLVED] Using DotNetZip

    Hey everyone! I'm trying to use a third-party solution called DotNetZip for basic zip compression/decompression, but I can't seem to get it set up. It's really not clear what you have to add to your C# project to get it working. I've added the CreateZip.cs class to my project, but unfortunately the ZipFile type is not recognized by the class. The CreateZip.cs class uses a reference called Ionic.Zip, but I cannot find the file called Ionic.zip.dll anywhere, and yes, I have searched for it. Does anyone think he/she could please give me some simple instructions for getting DotNetZip set up and ready to use?

    Any help would be greatly appreciated

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Using DotNetZip

    It's only not clear if you don't actually read the instructions. I've never used DotNetZip. I just searched Google for dotnetzip and this was the first result:

    http://dotnetzip.codeplex.com/

    On that page is a link that says "Getting Started with DotNetZip in Visual Studio". That link leads here:

    http://dotnetzip.codeplex.com/wikipa...ringTitle=Home

    On that page it says:
    Download the latest DotNetZip Developer's Kit package from http://dotnetzip.codeplex.com/Releas...tReleases.aspx. The developer's kit is for those building apps that use the library. The devkit download includes the DLL, the XML intellisense file, and the .chm help file for DotNetZip.
    Unpack the DevKit archive, including those three files, into a new directory. Name it anything you like. Remember the location.
    Create a project in Visual Studio. For example, File...New....Project... and select Windows Forms Application. You can use any language: VB, C#, etc.
    Right-click the project, and select "Add Reference..."
    Select the Browse tab, and browse to the folder or directory where you unpacked DotNetZip.
    Select the DotNetZip DLL for your project. Use Ionic.Zip.dll if you will be reading or writing ZIP files. Use Ionic.Zlib.dll if you want only ZLIB capability. (The zip.dll includes zip capability, as well as all the function of the ZLIB dll). If you are building a Compact Framework app, select the appropriate CF version of the DLL. The Reduced DLL is a ZIP dll that lacks the ability to produce self-extracting archives.
    Write your application code that uses the DotNetZip library.
    Remember to include the DotNetZip license in anything you distribute that relies on DotNetZip.
    Step-by-step instructions and I found them in less than a minute.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Member
    Join Date
    Oct 2010
    Posts
    56

    Re: Using DotNetZip

    Thanks for the reply and the help!

    To be honest, I did look for instructions, especially on the DotNetZip website, but I must've missed that one line that has the link to "Getting Started with DotNetZip in Visual Studio." Thank you very much for your help, and I'll be sure to look more carefully next time!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width