Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9008319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:54:44+00:00 2026-06-16T01:54:44+00:00

I need to use the following: using Microsoft.Deployment.Compression.Zip; From looking online it says I

  • 0

I need to use the following:

    using Microsoft.Deployment.Compression.Zip;

From looking online it says I need the following reference dlls

    Microsoft.Deployment.Compression.dll
    Microsoft.Deployment.Compression.Zip.dll

but I could not find these in the .NET folder.

Just as a FYI, below is how I plan to use it.

    // CREATING ZIP FILE BY ADDING LIST OF FILES
    ZipInfo zip = new ZipInfo(@"C:\testarchive1.zip");
    List<strng> files = new List<string>();
    files.Add(@"C:\test1.txt");
    files.Add(@"C:\test2.txt");
    files.Add(@"C:\test3.txt");
    zip.PackFiles(null, files, null);

    // CREATING ZIP FILE BY ADDING FOLDER (WITH SUB-FOLDERS) USING MAXIMUM COMPRESSION

     zip = new ZipInfo(@"C:\testarchive2.zip"); 

     zip.Pack(@"C:\Test", true, Microsoft.Deployment.Compression.CompressionLevel.Max, null);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T01:54:45+00:00Added an answer on June 16, 2026 at 1:54 am

    Try this :

    http://dotnetzip.codeplex.com/

    Sample code :

     using (ZipFile zip = new ZipFile())
     {
         // add this map file into the "images" directory in the zip archive
         zip.AddFile("c:\\images\\personal\\7440-N49th.png", "images");
         // add the report into a different directory in the archive
         zip.AddFile("c:\\Reports\\2008-Regional-Sales-Report.pdf", "files");
         zip.AddFile("ReadMe.txt");
         zip.Save("MyZipFile.zip");
     }
    

    Just as easy as your example.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to use the SharePoint API in the following way in a PowerShell
I have the following problem: I need to use XSLFO to generate a 2-column
I have the following method that returns void and I need to use it
I was following this tutorial . I need to use a php file's ouput
I need to dynamically generate radio or checkbox by jQuery. I use the following
I have the following links in a sql dump file(.sql). I need to use
I need following namespaces to use native wpf property grid however, VS 2010 doesn't
Following situation: I need a container for data with a rowindex. Currently we use
I`m creating a website using asp.net, and I need to use a local SQL
I need to replicate data from Microsoft SQL Server to MySQL or PostgreSQL. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.