简体   繁体   中英

How can I extract a zip file with DotNetZip in .NET 3.5?

I have a C# project in visual studio and I want to change target framework from .NET Framework 4.6 to .NET Framework 3.5 . In the past I used this code to exctract zip file:

ZipFile.ExtractToDirectory(zipPath, extractPath);

But now I can not use ZipFile class. So I added DotNetZip library to my project but I don't know How to use it.

As Steve said in comments I used this link .

using (ZipFile zip = ZipFile.Read(zipPath))
{

    zip.ExtractAll(mainPath);

}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM