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

.net, c#, zip

Solution

Not for 4.0, but a `ZipArchive` class is being considered for the next version. You can find details about this on the BCL Team blog.

Edit: Otherwise, assuming that it's still available, and depending on your definition of built in (at least it comes/came with Visual Studio), you might be able to use the J# classes to zip files as described in this article: Using the Zip Classes in the J# Class Libraries to Compress Files and Data with C#

Edit2: Though note the comments below, that the J# option is probably not the right option except in certain unusual circumstances.

Problem

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.

Original source

Related problems