There is an open source project to use with your projects. It’s easy to use.
Let’s zip a folder 🙂
using (ZipFile zip = new ZipFile())
{
zip.AddDirectory("c:\somedirectory");
zip.Comment = "This zip was created at " + System.DateTime.Now.ToString("G");
zip.Save("nameofthezipfile.zip");
}
Happy coding…