From: Morris, J. <jas...@in...> - 2005-04-21 16:31:57
|
No worries Gert. =20 I tried the 20-Apr nightly and the problem went away. =20 Jason ________________________________ From: Gert Driesen [mailto:ger...@te...]=20 Sent: Wednesday, April 20, 2005 7:54 AM To: Morris, Jason; nan...@li... Subject: RE: [Nant-users] problem with log4net 1.2.9 in rc3 with <cvs-*> tasks using TortoiseCVS 1.8.11 client's cvs.exe (long email) =09 =09 Hi Jason, =20 There was indeed a packaging screw-up in the 0.85 RC3 release (sorry about that). Thanks for bringing this to my attention. =20 I don't have time to correct this now, but it will definitely be corrected in the final release. Until then, please use a recent nightly build. =20 Sorry for the inconveniece. =20 Gert =20 =20 ________________________________ From: nan...@li... [mailto:nan...@li...] On Behalf Of Morris, Jason Sent: woensdag 20 april 2005 7:28 To: nan...@li... Subject: [Nant-users] problem with log4net 1.2.9 in rc3 with <cvs-*> tasks using TortoiseCVS 1.8.11 client's cvs.exe (long email) =09 =09 After upgrading to rc3, my <cvs-*> tasks started to break due to the new log4net 1.2.9 (1.2.1.40796). It looks like when the <cvs-update> task execs out to my TortoiseCVS cvs.exe, I get an assembly reference mismatch. I prefer to use my external cvs.exe instead of the packaged dll. =20 Anyone have any thoughts on what I should try to do to fix this? I think that its the ICSharpCode.SharpCvsLib expected the old version of log4net. Does it need to be upgraded? =20 Jason =20 Here is the target and tasks that generates the error: =20 <target name=3D"build-version" depends=3D"" description=3D"Setup of the build version numbers"> =20 <property name=3D"build.number.file" value=3D"Intel.Indicators.build.number.txt" /> =20 <cvs-update usesharpcvslib=3D"false" verbose=3D"${isVerbose}" failonerror=3D"true"> <fileset> <include name=3D"${build.number.file}" /> </fileset> <arg line=3D"-q -x" /> </cvs-update> =20 <version path=3D"${build.number.file}" buildtype=3D"NoIncrement" revisiontype=3D"Increment" verbose=3D"${isVerbose}" failonerror=3D"true" /> =20 <cvs usesharpcvslib=3D"false" command=3D"commit" commandline=3D"-m "Commiting the new version number"" verbose=3D"${isVerbose}" failonerror=3D"true"> <fileset> <include name=3D"${build.number.file}"/> </fileset> <arg line=3D"-q -x" /> </cvs> =20 <property name=3D"build.version" value=3D"${buildnumber.major}.${buildnumber.minor}.${buildnumber.build}" /> <property name=3D"cvs.build.version" value=3D"${buildnumber.major}_${buildnumber.minor}_${buildnumber.build}_$= { buildnumber.revision}" /> <echo message=3D"Building ${project.name} version ${buildnumber.version}" /> </target> =20 Here is the verbose command line argument with internal log4net logging turned on: =20 log4net: log4net assembly [log4net, Version=3D1.2.1.40796, Culture=3Dneutral, PublicKeyToken=3Daaa0f432407c68df]. Loaded from [c:\projects\ccsd\utils\nant\nant-0.8.5\bin\log4net.dll]. (.NET Runtime [1.1.4322.2032] on Microsoft Windows NT 5.1.2600.0) log4net: DefaultRepositorySelector: defaultRepositoryType [log4net.Repository.Hierarchy.Hierarchy] log4net: DefaultRepositorySelector: Creating repository for assembly [NAnt, Version=3D0.85.1932.0, Culture=3Dneutral, PublicKeyToken=3Dnull] log4net: DefaultRepositorySelector: Assembly [NAnt, Version=3D0.85.1932.0, Culture=3Dneutral, PublicKeyToken=3Dnull] Loaded = From [C:\projects\ccsd\utils\nAnt\nAnt-0.8.5\bin\NAnt.exe] log4net: DefaultRepositorySelector: Assembly [NAnt, Version=3D0.85.1932.0, Culture=3Dneutral, PublicKeyToken=3Dnull] does = not have a RepositoryAttribute specified. log4net: DefaultRepositorySelector: Assembly [NAnt, Version=3D0.85.1932.0, Culture=3Dneutral, PublicKeyToken=3Dnull] using repository [log4net-default-repository] and repository type [log4net.Repository.Hierarchy.Hierarchy] log4net: DefaultRepositorySelector: Creating repository [log4net-default-repository] using type [log4net.Repository.Hierarchy.Hierarchy] log4net: XmlConfigurator: configuring repository [log4net-default-repository] using file [C:\projects\ccsd\utils\nAnt\nAnt-0.8.5\bin\NAnt.exe.config] watching for file updates log4net: XmlConfigurator: configuring repository [log4net-default-repository] using file [C:\projects\ccsd\utils\nAnt\nAnt-0.8.5\bin\NAnt.exe.config] log4net: XmlConfigurator: configuring repository [log4net-default-repository] using stream log4net: XmlConfigurator: loading XML configuration log4net: XmlConfigurator: Configuring Repository [log4net-default-repository] log4net: XmlConfigurator: Configuration update mode [Merge]. log4net: XmlConfigurator: Logger [root] Level string is [ERROR]. log4net: XmlConfigurator: Logger [root] level set to [name=3D"ERROR",value=3D70000]. log4net: XmlConfigurator: Loading Appender [ConsoleAppender] type: [log4net.Appender.ConsoleAppender] log4net: Converter: [message] Option: [] Format: [min=3D-1,max=3D2147483647,leftAlign=3DFalse] log4net: Converter: [newline] Option: [] Format: [min=3D-1,max=3D2147483647,leftAlign=3DFalse] log4net: XmlConfigurator: Setting Property [ConversionPattern] to String value [[%c{2}:%m - [%x] <%X{auth}>]%n] log4net: Converter: [literal] Option: [[] Format: [min=3D-1,max=3D2147483647,leftAlign=3DFalse] log4net: Converter: [c] Option: [2] Format: [min=3D-1,max=3D2147483647,leftAlign=3DFalse] log4net: Converter: [literal] Option: [:] Format: [min=3D-1,max=3D2147483647,leftAlign=3DFalse] log4net: Converter: [m] Option: [] Format: [min=3D-1,max=3D2147483647,leftAlign=3DFalse] log4net: Converter: [literal] Option: [ - [] Format: [min=3D-1,max=3D2147483647,leftAlign=3DFalse] log4net: Converter: [x] Option: [] Format: [min=3D-1,max=3D2147483647,leftAlign=3DFalse] log4net: Converter: [literal] Option: [] <] Format: [min=3D-1,max=3D2147483647,leftAlign=3DFalse] log4net: Converter: [X] Option: [auth] Format: [min=3D-1,max=3D2147483647,leftAlign=3DFalse] log4net: Converter: [literal] Option: [>]] Format: [min=3D-1,max=3D2147483647,leftAlign=3DFalse] log4net: Converter: [n] Option: [] Format: [min=3D-1,max=3D2147483647,leftAlign=3DFalse] log4net: XmlConfigurator: Setting Property [Layout] to object [log4net.Layout.PatternLayout] log4net: XmlConfigurator: Created Appender [ConsoleAppender] log4net: XmlConfigurator: Adding appender named [ConsoleAppender] to logger [root]. log4net: XmlConfigurator: Hierarchy Threshold [ALL] NAnt 0.85 (Build 0.85.1932.0; rc3; 4/16/2005) Copyright (C) 2001-2005 Gerry Shaw http://nant.sourceforge.net =20 log4net: DefaultRepositorySelector: Creating repository for assembly [NAnt.Core, Version=3D0.85.1932.0, Culture=3Dneutral, PublicKeyToken=3Dnull] log4net: DefaultRepositorySelector: Assembly [NAnt.Core, Version=3D0.85.1932.0, Culture=3Dneutral, PublicKeyToken=3Dnull] Loaded = From [c:\projects\ccsd\utils\nant\nant-0.8.5\bin\nant.core.dll] log4net: DefaultRepositorySelector: Assembly [NAnt.Core, Version=3D0.85.1932.0, Culture=3Dneutral, PublicKeyToken=3Dnull] does = not have a RepositoryAttribute specified. log4net: DefaultRepositorySelector: Assembly [NAnt.Core, Version=3D0.85.1932.0, Culture=3Dneutral, PublicKeyToken=3Dnull] using repository [log4net-default-repository] and repository type [log4net.Repository.Hierarchy.Hierarchy] log4net: DefaultRepositorySelector: repository [log4net-default-repository] already exists, using repository type [log4net.Repository.Hierarchy.Hierarchy] [Core.Task:readregistry Generated Exception - [] <(null)>] Exception: NAnt.Core.BuildException Message: Registry Value Not Found! - key=3D'SOFTWARE\Microsoft\.NETFramework\\sdkInstallRoot';hive=3D'LocalMac= hin e'; Source: NAnt.Win32Tasks at NAnt.Win32.Tasks.ReadRegistryTask.ExecuteTask() at NAnt.Core.Task.Execute() =20 Framework 'net-1.0' is invalid and has not been loaded : The 'System.dll' assembly does not exist in framework assembly directory 'C:\WINNT\Microsoft.NET\Framework\v1.0.3705'.. =20 [Core.Task:readregistry Generated Exception - [] <(null)>] Exception: NAnt.Core.BuildException Message: Registry Path Not Found! - key=3D'SOFTWARE\Novell\Mono\';hive=3D'Microsoft.Win32.RegistryHive[]'; Source: NAnt.Win32Tasks at NAnt.Win32.Tasks.ReadRegistryTask.LookupRegKey(String key, RegistryHive[] registries) at NAnt.Win32.Tasks.ReadRegistryTask.ExecuteTask() at NAnt.Core.Task.Execute() =20 [Core.Task:readregistry Generated Exception - [] <(null)>] Exception: NAnt.Core.BuildException Message: Registry Path Not Found! - key=3D'SOFTWARE\Mono\';hive=3D'Microsoft.Win32.RegistryHive[]'; Source: NAnt.Win32Tasks at NAnt.Win32.Tasks.ReadRegistryTask.LookupRegKey(String key, RegistryHive[] registries) at NAnt.Win32.Tasks.ReadRegistryTask.ExecuteTask() at NAnt.Core.Task.Execute() =20 [Core.Task:if Generated Exception - [] <(null)>] Exception: NAnt.Core.BuildException Message: Registry Path Not Found! - key=3D'SOFTWARE\Mono\';hive=3D'Microsoft.Win32.RegistryHive[]'; Source: NAnt.Win32Tasks at NAnt.Win32.Tasks.ReadRegistryTask.LookupRegKey(String key, RegistryHive[] registries) at NAnt.Win32.Tasks.ReadRegistryTask.ExecuteTask() at NAnt.Core.Task.Execute() at NAnt.Core.TaskContainer.ExecuteChildTasks() at NAnt.Core.Tasks.IfTask.ExecuteTask() at NAnt.Core.Task.Execute() =20 Framework 'mono-1.0' is invalid and has not been loaded : Registry Path Not Found! - key=3D'SOFTWARE\Mono\';hive=3D'Microsoft.Win32.RegistryHive[]';. =20 [Core.Task:readregistry Generated Exception - [] <(null)>] Exception: NAnt.Core.BuildException Message: Registry Path Not Found! - key=3D'SOFTWARE\Novell\Mono\';hive=3D'Microsoft.Win32.RegistryHive[]'; Source: NAnt.Win32Tasks at NAnt.Win32.Tasks.ReadRegistryTask.LookupRegKey(String key, RegistryHive[] registries) at NAnt.Win32.Tasks.ReadRegistryTask.ExecuteTask() at NAnt.Core.Task.Execute() =20 [Core.Task:readregistry Generated Exception - [] <(null)>] Exception: NAnt.Core.BuildException Message: Registry Path Not Found! - key=3D'SOFTWARE\Mono\';hive=3D'Microsoft.Win32.RegistryHive[]'; Source: NAnt.Win32Tasks at NAnt.Win32.Tasks.ReadRegistryTask.LookupRegKey(String key, RegistryHive[] registries) at NAnt.Win32.Tasks.ReadRegistryTask.ExecuteTask() at NAnt.Core.Task.Execute() =20 [Core.Task:if Generated Exception - [] <(null)>] Exception: NAnt.Core.BuildException Message: Registry Path Not Found! - key=3D'SOFTWARE\Mono\';hive=3D'Microsoft.Win32.RegistryHive[]'; Source: NAnt.Win32Tasks at NAnt.Win32.Tasks.ReadRegistryTask.LookupRegKey(String key, RegistryHive[] registries) at NAnt.Win32.Tasks.ReadRegistryTask.ExecuteTask() at NAnt.Core.Task.Execute() at NAnt.Core.TaskContainer.ExecuteChildTasks() at NAnt.Core.Tasks.IfTask.ExecuteTask() at NAnt.Core.Task.Execute() =20 Framework 'mono-2.0' is invalid and has not been loaded : Registry Path Not Found! - key=3D'SOFTWARE\Mono\';hive=3D'Microsoft.Win32.RegistryHive[]';. =20 Framework 'sscli-1.0' is invalid and has not been loaded : Framework directory 'C:\sscli\build\v1.x86fstchk.rotor' does not exist.. =20 Buildfile: file:///C:/projects/Indicators/Intel.Indicators.build Target framework: Microsoft .NET Framework 1.1 Base Directory: C:\projects\Indicators. Target(s) specified: deploy=20 =20 =09 env-dev: =20 build-version: =20 log4net: DefaultRepositorySelector: Creating repository for assembly [NAnt.SourceControlTasks, Version=3D0.85.1932.0, Culture=3Dneutral, PublicKeyToken=3Dnull] log4net: DefaultRepositorySelector: Assembly [NAnt.SourceControlTasks, Version=3D0.85.1932.0, Culture=3Dneutral, PublicKeyToken=3Dnull] Loaded From [c:\projects\ccsd\utils\nant\nant-0.8.5\bin\nant.sourcecontroltasks.dll] log4net: DefaultRepositorySelector: Assembly [NAnt.SourceControlTasks, Version=3D0.85.1932.0, Culture=3Dneutral, PublicKeyToken=3Dnull] does not have a RepositoryAttribute specified. log4net: DefaultRepositorySelector: Assembly [NAnt.SourceControlTasks, Version=3D0.85.1932.0, Culture=3Dneutral, PublicKeyToken=3Dnull] using repository [log4net-default-repository] and repository type [log4net.Repository.Hierarchy.Hierarchy] log4net: DefaultRepositorySelector: repository [log4net-default-repository] already exists, using repository type [log4net.Repository.Hierarchy.Hierarchy] [cvs-update] Using ssh binary:=20 [cvs-update] Using .cvspass file:=20 [cvs-update] Working directory: C:\projects\Indicators [cvs-update] Executable: C:\Program Files\TortoiseCVS\cvs.exe [cvs-update] Arguments: -q -x update -P -d "Intel.Indicators.build.number.txt" [cvs-update] Starting 'C:\Program Files\TortoiseCVS\cvs.exe ( -q -x update -P -d "Intel.Indicators.build.number.txt")' in 'C:\projects\Indicators' [cvs-update] M Intel.Indicators.build.number.txt [version] Build number '1.5.0.7'. [Tasks.ExternalProgramBase:Execution Error - [] <(null)>] Exception: System.IO.FileLoadException Message: The located assembly's manifest definition with name 'log4net' does not match the assembly reference. Source: ICSharpCode.SharpCvsLib at ICSharpCode.SharpCvsLib.FileSystem.Manager..ctor(String workingDir) at ICSharpCode.SharpCvsLib.FileSystem.Root.Load(FileInfo rootFile) at ICSharpCode.SharpCvsLib.FileSystem.Root.Load(DirectoryInfo cvsDir) at NAnt.SourceControl.Tasks.AbstractCvsTask.get_Root() at NAnt.SourceControl.Tasks.AbstractCvsTask.PrepareProcess(Process process) at NAnt.Core.Tasks.ExternalProgramBase.StartProcess() at NAnt.Core.Tasks.ExternalProgramBase.ExecuteTask() =20 [Core.Task:cvs Generated Exception - [] <(null)>] Exception: NAnt.Core.BuildException Message: C:\projects\Indicators\Intel.Indicators.build(58,10): NAnt.SourceControl.Tasks.CvsTask: C:\Program Files\TortoiseCVS\cvs.exe had errors. Please see log4net log. Source: NAnt.Core at NAnt.Core.Tasks.ExternalProgramBase.ExecuteTask() at NAnt.Core.Task.Execute() =20 Nested Exception =20 Exception: System.IO.FileLoadException Message: The located assembly's manifest definition with name 'log4net' does not match the assembly reference. Source: ICSharpCode.SharpCvsLib at ICSharpCode.SharpCvsLib.FileSystem.Manager..ctor(String workingDir) at ICSharpCode.SharpCvsLib.FileSystem.Root.Load(FileInfo rootFile) at ICSharpCode.SharpCvsLib.FileSystem.Root.Load(DirectoryInfo cvsDir) at NAnt.SourceControl.Tasks.AbstractCvsTask.get_Root() at NAnt.SourceControl.Tasks.AbstractCvsTask.PrepareProcess(Process process) at NAnt.Core.Tasks.ExternalProgramBase.StartProcess() at NAnt.Core.Tasks.ExternalProgramBase.ExecuteTask() =20 [Core.Project:Build failed. - [] <(null)>] Exception: NAnt.Core.BuildException Message: C:\projects\Indicators\Intel.Indicators.build(58,10): NAnt.SourceControl.Tasks.CvsTask: C:\Program Files\TortoiseCVS\cvs.exe had errors. Please see log4net log. Source: NAnt.Core at NAnt.Core.Tasks.ExternalProgramBase.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() =20 Nested Exception =20 Exception: System.IO.FileLoadException Message: The located assembly's manifest definition with name 'log4net' does not match the assembly reference. Source: ICSharpCode.SharpCvsLib at ICSharpCode.SharpCvsLib.FileSystem.Manager..ctor(String workingDir) at ICSharpCode.SharpCvsLib.FileSystem.Root.Load(FileInfo rootFile) at ICSharpCode.SharpCvsLib.FileSystem.Root.Load(DirectoryInfo cvsDir) at NAnt.SourceControl.Tasks.AbstractCvsTask.get_Root() at NAnt.SourceControl.Tasks.AbstractCvsTask.PrepareProcess(Process process) at NAnt.Core.Tasks.ExternalProgramBase.StartProcess() at NAnt.Core.Tasks.ExternalProgramBase.ExecuteTask() =20 =20 =20 BUILD FAILED =20 C:\projects\Indicators\Intel.Indicators.build(58,10): NAnt.SourceControl.Tasks.CvsTask: C:\Program Files\TortoiseCVS\cvs.exe had errors. Please see log4net log.: NAnt.Core.BuildException: C:\projects\Indicators\Intel.Indicators.build(58,10): NAnt.SourceControl.Tasks.CvsTask: C:\Program Files\TortoiseCVS\cvs.exe had errors. Please see log4net log. ---> System.IO.FileLoadException: The located assembly's manifest definition with name 'log4net' does not match the assembly reference. File name: "log4net" at ICSharpCode.SharpCvsLib.FileSystem.Manager..ctor(String workingDir) at ICSharpCode.SharpCvsLib.FileSystem.Root.Load(FileInfo rootFile) at ICSharpCode.SharpCvsLib.FileSystem.Root.Load(DirectoryInfo cvsDir) at NAnt.SourceControl.Tasks.AbstractCvsTask.get_Root() at NAnt.SourceControl.Tasks.AbstractCvsTask.PrepareProcess(Process process) at NAnt.Core.Tasks.ExternalProgramBase.StartProcess() at NAnt.Core.Tasks.ExternalProgramBase.ExecuteTask() =20 =3D=3D=3D Pre-bind state information =3D=3D=3D LOG: DisplayName =3D log4net, Version=3D1.2.9.0, Culture=3Dneutral, PublicKeyToken=3Db32731d11ce58905 (Fully-specified) LOG: Appbase =3D C:\projects\ccsd\utils\nAnt\nAnt-0.8.5\bin\ LOG: Initial PrivatePath =3D NULL Calling assembly : ICSharpCode.SharpCvsLib, Version=3D0.36.4902.7334, Culture=3Dneutral, PublicKeyToken=3Dnull. =3D=3D=3D =20 LOG: Private path hint found in configuration file: lib. LOG: Publisher policy file is not found. LOG: Host configuration file not found. LOG: Using machine configuration file from C:\WINNT\Microsoft.NET\Framework\v1.1.4322\config\machine.config. LOG: Post-policy reference: log4net, Version=3D1.2.9.0, Culture=3Dneutral, PublicKeyToken=3Db32731d11ce58905 LOG: Attempting download of new URL file:///C:/projects/ccsd/utils/nAnt/nAnt-0.8.5/bin/log4net.DLL. WRN: Comparing the assembly name resulted in the mismatch: Revision Number =20 --- End of inner exception stack trace --- at NAnt.Core.Tasks.ExternalProgramBase.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() =20 Total time: 5.7 seconds. =20 Tool completed with exit code 1 =20 =20 |