title: c# zip files using Microsoft.Deployment.Compression.Zip
body: <p>I need to use the following:</p>
  
  <pre><code>    using Microsoft.Deployment.Compression.Zip;
  </code></pre>
  
  <p>From looking online it says I need the following reference dlls</p>
  
  <pre><code>    Microsoft.Deployment.Compression.dll
      Microsoft.Deployment.Compression.Zip.dll
  </code></pre>
  
  <p>but I could not find these in the .NET folder.</p>
  
  <p>Just as a FYI, below is how I plan to use it.</p>
  
  <pre><code>    // CREATING ZIP FILE BY ADDING LIST OF FILES
      ZipInfo zip = new ZipInfo(@"C:\testarchive1.zip");
      List&lt;strng&gt; files = new List&lt;string&gt;();
      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);
  </code></pre>