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

  • Home
  • SEARCH
  • 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

Ask A Question

Stats

  • Questions 65k
  • Answers 65k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Your second example does not work if you send the… May 11, 2026 at 11:13 am
  • added an answer Okay, your edit really clarifies things. You're not looking for… May 11, 2026 at 11:13 am
  • added an answer How big of a code base are we talking about… May 11, 2026 at 11:13 am

Related Questions

I wrote the following Nant script on my Vista dev machine and was pleased
I wrote the following javascript to put in my startup folder to work around
Using an idea from Bob King idea I wrote the following method. It works
In C++Builder, I wrote the following code (in Button1Click handler), When I run in
I needed some simple string encryption, so I wrote the following code (with a
I just wrote the following C++ function to programmatically determine how much RAM a
I wrote a managed C++ class that has the following function: void EndPointsMappingWrapper::GetLastError(char* strErrorMessage)
I've got the following bit of code (that another developer wrote) that I need
How can I write the following code quickly in emacs? \newcommand{\cA}{\mathcal A} \newcommand{\cB}{\mathcal B}
In C# I could easily write the following: string stringValue = string.IsNullOrEmpty( otherString )

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.