工作项目中需要用到zip压缩解压缩文件,一开始看上了Ionic.Zip.dll这个类库,操作方便,写法简单 对应有个ziphelper类 using Ionic.Zip; public static class ZipHelper { public static void UnZip(string zipPath, string outPath) { try { using (ZipFile zip = ZipFile.Read(zipPath)) { foreach (ZipEntry ent…