PDA

View Full Version : Visual C# question



Bidmaron
March 12th, 2014, 04:12
Does anyone know of an available library (free) for visual c# that lets you make a zip file from several files?

Trenloe
March 12th, 2014, 04:24
I use this in the creature parser to zip up the .xml files to make the .mod file. https://www.kellermansoftware.com/p-19-free-sharp-zip-wrapper.aspx

The package includes a C# Zip Wrapper and demo C# code.

Bidmaron
March 12th, 2014, 04:36
Thanks, Trenloe!

Qai
March 12th, 2014, 05:28
I like to use this:

https://dotnetzip.codeplex.com/

Has several dll's, very easy to install, nice clean API, very powerful, and well documented. You have access to zip, bzip2, and zlib.

Bidmaron
March 12th, 2014, 18:08
Thanks, Qai!

valeros
March 13th, 2014, 05:50
In .Net 4.5, the Package class in System.IO.Packaging lets you create ZIP files.

https://msdn.microsoft.com/en-us/library/system.io.packaging.zippackage.aspx

Bidmaron
March 13th, 2014, 06:11
I'll be danged, so it does!

Qai
March 13th, 2014, 20:51
Cool beans! I had no idea this even existed. Judging from the drop-down at that link, it seems like it has actually been around since .NET 3.0. Now that I think about it, it shouldn't be surprising that some kind of zip library should be accessible within the System.IO namespace. A clean install of Windows lets you access zip files without needing to install any 3rd-party software, so the functionality is there.

Any info on how System.IO.Packaging compares to the other libraries mentioned in this thread in terms of performance and features?

Thanks for the post. Appreciated!