Zip'ping files
Tonight I was using the ICSharpCode zip library to zip files for my Codewise
implementation. Basically, when users nominate to make a Relase visible to
Codeshare, I create a manifest file and package it and the Release file into a
Codewise package.
I ran the code which comes in the .chm file but, noticed that my .zip files
wouldn't show any content when viewing them through the default Windows Zip File
viewer. I little bit of investigation led me to the FAQ site for the
library which answered my question. Basically, you cannot pass a fullpath
to the ZipEntry class if you want it to be visible to Windows. So, you
just remove the path portion of the filename:
ZipEntry entry = new ZipEntry(Path.GetFileName(fullPath));
ICSharpCode Zip Library:
www.icsharpcode.net/OpenSource/SharpZipLibFAQ
Wiki:
http://wiki.sharpdevelop.net/default.aspx/SharpZipLib.FrequentlyAskedQuestions