Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Handling Zip Files Without Third Party Lib in .NET 4.0?

Tags:

There is a similar question for 3.5 here:

Is there a built-in zip library in .NET 3.5?

that speculated that 4.0 would have it, but I can't find any info about it. If not, does anyone know why not? Seems like it would be fairly high on the list of things to include support for.

like image 847
Jason Avatar asked May 10 '11 04:05

Jason


2 Answers

Take a look at the System.IO.Packaging namespace, which contains support for ZIP files, but not all of the features of ZIP files.

Still, it might be enough for your needs.

like image 104
Lasse V. Karlsen Avatar answered Sep 17 '22 21:09

Lasse V. Karlsen


You may have already moved along, but ZiP API is added in .NET 4.5

http://msdn.microsoft.com/en-us/library/system.io.compression.ziparchive.aspx

go nuts.

like image 33
Madushan Avatar answered Sep 19 '22 21:09

Madushan