Attention: We are retiring the ASP.NET Community Blogs. Learn more >

Contents tagged with Tools

  • Zip a folder in a Pragmatic way

     Since I have been reading the book "The Pragmatic Programmer", I see the importance of using the available tools that you can find online. I have a requirement to add to a installer a zipped folder of the GlassFish (Java App Server) and then unzip it to process some files there and have GF running as a server. My first approach was use the GZipStream class from System.IO in my merge module. So I decided to do a Unit before include that code in my installer Merge Module. I found that C# class has not functionality to zip a folder with nested folders and I was thinking on create a recursive method to that job for me to accomplish that but I got a better "Pragmatic" idea, I googled it then I found a wonderful tool to do that, that fortunately is free to use on any project. It is SharpZipLib from ICSharpCode you can find it on http://www.icsharpcode.net/OpenSource/SharpZipLib/Default.aspx.