« Return to Thread: zip task Problem loading SharpZipLib
I downloaded
the latest version of NAnt and NAntContrib, and tried to use a simple zip task in
my NAnt script.
The version
of SharpZipLib.dll that comes with NAnt, in <path>\NAnt\bin\lib, is
0.84.0.0.
I tried
downloading the latest version of SharpZipLib, renaming ICSharpCode.SharpZipLib.dll
to ICSharpCode.SharpZipLib.dll.bak, and putting the new version in its place,
and the new file is version 0.85.4.369.
Looking at
the error reported below (with Fusion logging turned on for extra verbosity), apparently
NAnt.exe depends upon version 0.85.1.271 of SharpZipLib and won’t load
either of the above versions.
Anybody know
how to resolve this issue?
Thanks,
Mark
Email me at snyderma
at duckcreektech dot com.
When I try
to build my target, I get:
BUILD FAILED
INTERNAL
ERROR
System.IO.FileLoadException:
Could not load file or assembly 'ICSharpCode.SharpZ
ipLib,
Version=0.85.1.271, Culture=neutral, PublicKeyToken=1b03e6acf1164f73' or
one of its
dependencies. The located assembly's manifest definition does not mat
ch the
assembly reference. (Exception from HRESULT: 0x80131040)
File name:
'ICSharpCode.SharpZipLib, Version=0.85.1.271, Culture=neutral, Public
KeyToken=1b03e6acf1164f73'
at NAnt.Compression.Tasks.ZipTask.ExecuteTask()
at NAnt.Core.Task.Execute()
at NAnt.Core.Target.Execute()
at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies)
at NAnt.Core.Project.Execute()
at NAnt.Core.Project.Run()
=== Pre-bind
state information ===
LOG: User =
EngBuild3X\Administrator
LOG:
DisplayName = ICSharpCode.SharpZipLib, Version=0.85.1.271, Culture=neutral,
PublicKeyToken=1b03e6acf1164f73
(Fully-specified)
LOG: Appbase
= file:///C:/Program Files/Nant/bin/
LOG: Initial
PrivatePath = lib;lib\net\2.0;lib\common\neutral
Calling
assembly : NAnt.CompressionTasks, Version=0.86.2898.0, Culture=neutral,
PublicKeyToken=null.
===
LOG: This
bind starts in default load context.
LOG: Using
application configuration file: C:\Program Files\Nant\bin\NAnt.exe.co
nfig
LOG: Using
machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2
.0.50727\config\machine.config.
LOG:
Post-policy reference: ICSharpCode.SharpZipLib, Version=0.85.1.271, Culture
=neutral,
PublicKeyToken=1b03e6acf1164f73
LOG:
Attempting download of new URL file:///C:/Program Files/Nant/bin/ICSharpCod
e.SharpZipLib.DLL.
LOG:
Attempting download of new URL file:///C:/Program Files/Nant/bin/ICSharpCod
e.SharpZipLib/ICSharpCode.SharpZipLib.DLL.
LOG:
Attempting download of new URL file:///C:/Program Files/Nant/bin/lib/ICShar
pCode.SharpZipLib.DLL.
WRN:
Comparing the assembly name resulted in the mismatch: Minor Version
ERR: Failed
to complete setup of assembly (hr = 0x80131040). Probing terminated.
Please send
bug report to nant-developers@....
« Return to Thread: zip task Problem loading SharpZipLib
| Free Forum Powered by Nabble | Forum Help |