Recently I was asked to help out when we had a need to reduce the size of a directory of rolling backups. And when I say size, I am talking around 12GB a day backup sizes. This was already a compressed directory, but I found that if we zip up the folders, we can get even better compression (to the tune of 60+% more room). First note: Windows built-in zipping utility is not so good, it won’t even try to compress anything that size. Instead it throws an error. Nice. Basically I started working with two options, #ZipLib (SharpZipLib) or 7-Zip . #ZipLib is written entirely in C#, which lends nicely to logging and reporting purposes, but in my experience it may not be the answer for large file sets ( NOTE: I benchmarked with #Zip’s ZipFile, not with FastZip, which might be faster with the same compression results). 7-Zip is a fast utility, but it is an external application, so you have to call it from within your code an...
Content suppressed by ://URLFAN, for full article visit source
Defining MSBuild And NAnt Tasks Together in the SAME ClassFrom: feeds.feedburner.com
Post Date: 2008-09-21 03:23:13
I haven’t seen ANYONE talk about putting MSBuild together with NAnt . To me, writing two separate classes (one for MSBuild and one for NAnt) is repetition. There may be a reason to keep them separate (and that might have to do with keeping other required assemblies around, i.e. NAnt.Core.dll when just wanting MSBuild), but I have not found a really good reason yet to separate them. If someone does, please let me know. I just made the two play nice together in m...
more How to Programmatically Install A Windows Service (.NET) on a Remote Machine (with or without Dependencies) - Part OneFrom: feeds.feedburner.com
Post Date: 2008-09-20 22:50:46
Sometimes there is no good way to do things on remote computers except through something as low level as WMI (Windows Management Instrumentation). Installing a service is a great example of this. Fortunately for us, Jared Boelen has already figured this out . I recommend reading his posts on how to do this. We are not going to get into the actual MS Build Task that he put forth this time, just the code that would allow you to install a service remotely. NOTE: This...
more