title: The name 'zipfile' does not exist in the current context
body: <p>I have an SSIS project that I can run as is, but when I try to edit it, I get an error:</p>
  
  <blockquote>
    <p>The name 'zipfile' does not exist in the current context</p>
  </blockquote>
  
  <p>Without editing, it works fine.</p>
  
  <p>The code that's producing the error: </p>
  
  <pre><code>public void Main()
  {
      // TODO: Add your code here
      string moduleName = Dts.Variables["User::ModuleName"].Value.ToString();
      string s = Dts.Variables["User::ZipFileLocation"].Value.ToString().TrimEnd('\\') + "\\" + moduleName + "\\" + moduleName + "_" + DateTime.Now.ToString("ddMMyyyy");
  
      // TODO: Add your code here
      string startPath = s;
      string zipPath = s + ".zip";
  
      try
      {
          File.Delete(zipPath);
          ZipFile.CreateFromDirectory(startPath, zipPath);
      }
      catch (Exception e)
      {
      }
  
      Dts.TaskResult = (int)ScriptResults.Success;
  }
  </code></pre>
  
  <p>How can I solve this?</p>