Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 120325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:47:36+00:00 2026-05-11T03:47:36+00:00

I wrote the following Nant script on my Vista dev machine and was pleased

  • 0

I wrote the following Nant script on my Vista dev machine and was pleased as punch with the output of the Nant zip task, as I can unzip it with any problems:

<zip zipfile='${dir.build}CeoConfigUtilities.${build-version}.zip'>    <fileset basedir='${dir.configutilities}' prefix='CeoConfigUtilities'>       <include name='**' />    </fileset> </zip> 

I checked the Nant script into SVN, and the build server zipped up my files without a problem. I tested and found I can unzip those on my Vista machine too. Life and Nant are good, right? Well, others get the following message when unzipping these files on Windows XP Pro:

The Compressed (zipped) Folder is invalid or corrupted.

I took the files produced on my machine to an XP machine and got the same message. One difference I notice is that, when I open the zip using XP’s built-in tools, it says the compression ratio for each file is 100%. Using jZip on Vista, each file has a different, non-100% ratio.

Has anyone experienced anything like this? Is there some setting I don’t know about to make the output of the Nant zip task be unzippable on XP? Nant was working out so well for me that I’ll be disappointed if this silly unzip issue fouls things up for XP users.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T03:47:37+00:00Added an answer on May 11, 2026 at 3:47 am

    I found the answer to my question lies not in Nant script but a version incompatibility that I thought I was being clever by working around via an assembly version redirection. That teaches me for thinking I am clever!

    It turns out that the distro of Nant I had my hands on (the one checked into the StructureMap SVN repository) contains two different versions of SharpZipLib. In lib, SharpZipLib.dll is version 0.85.5.452. In lib\common\neutral, SharpZipLib.dll is version 0.85.1.271. Adding a zip task yielded an assembly binding error, so I added the following to Nant.exe.config:

    <dependentAssembly>     <assemblyIdentity name='ICSharpCode.SharpZipLib' publicKeyToken='1b03e6acf1164f73' culture=''/>    <bindingRedirect oldVersion='0.85.1.271' newVersion='0.85.5.452'/> </dependentAssembly> 

    I thought DLL Hell was dead and I also thought I had outsmarted whatever new hell we are in now. As it turns out, I should have simply copied the old version in lib\commmon\neutral over the new version in lib.

    Now my build server produces files that can be unzipped on XP.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wrote the following shell script: #!/bin/bash MAIL=/usr/mail/${LOGNAME:?} . /installations/etl_scripts/etl_job.properties JOB_LOG_FILE_PATH=$JOB_LOG_FILE_PATH export JOB_LOG_FILE_PATH JOB_LOG_FILE_NAME=$JOB_LOG_FILE_NAME
I'm trying to write a NAnt extension task that can update different settings within
In a shell script I wrote following lines gave error during execution of script
I am trying gradient descent, I wrote following however not getting any answer, n=0;
In Sqlite, can I know how to delete last 10 records? I've wrote following
I wrote following function void validateUser(void) { string uName; string uPassword; char c; map
i wrote following code to create a linkbutton programmatically, but its showing like lable
I wrote following code...but i am getting Error like: Error 1 'LoginDLL.Class1.Login(string, string, string)':
I wrote the following: <html> <head> </head> <body> <input type=date /> </body> </html> Just
I wrote the following code for text file encryption and decryption. The encryption process

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.