0

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.

Behrooz Fard
  • 536
  • 4
  • 26

1 Answers1

0

As Steve said in comments I used this link.

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

    zip.ExtractAll(mainPath);

}
Behrooz Fard
  • 536
  • 4
  • 26