I am trying to use ZipFile.OpenRead() but the thing is no matter how much i try it is not working in the program, whatever nugetpackage or code i use.
I tried System.IO.Compression.ZipFile.OpenRead() this did not work, instead I was asked to use ZipArchive by visual studio.
I imported both System.IO.Compression.ZipFile and System.IO.Compression nuget packages but still there is no change, what more can i do?
The code is here: Link, Line no. 167.
CodePudding user response:
You need to add a reference to System.IO.Compression.FileSystem
in your project to get System.IO.Compression.ZipFile
.