Giuseppe, You're actually running into two separate Mono bugs (for which I've filed bug reports quite a long time ago):
1. http://bugzilla.ximian.com/show_bug.cgi?id=66237: Mono does not remap references to system assemblies from a previous version of .NET to corresponding assemblies in the current runtime version. This is what causes the TypeInitializationException. 2. http://bugzilla.ximian.com/show_bug.cgi?id=62913: Mono does not fall back to 1.0 profile (1.1 runtime) when the 2.0 profile is not available. A fix for the first bug was posted to the list a few days ago, but it has not yet been committed to cvs. A workaround for both issues is to remove the following entry from the <startup> node of the NAnt configuration file (src/NAnt.Console/App.config if you're building from source): <supportedRuntime version="v2.0.40607" /> For now, there really isn't much we (the NAnt team) can do, but wait until these issues are fixed :( Gert > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Giuseppe Greco > Sent: zondag 6 februari 2005 10:35 > To: NAnt Developers > Subject: [nant-dev] No way to get NAnt compiled on Linux with Mono > > Hi all, > > I'm trying to recompile NAnt with the latest Mono from SVN... > but believe me, no way! > > First, the build process looks for /usr/lib/mono/2.0, which does > not exist... Okay, then after fixing that, the build process stops > due the following unhandled exception: > > log4net:ERROR LogLog: Exception while reading ConfigurationSettings. > Check your .config file is well formed XML. > > Unhandled Exception: System.TypeInitializationException: An exception > was thrown by the type initializer for NAnt.Console.ConsoleStub ---> > System.TypeInitializationException: An exception was thrown > by the type > initializer for log4net.Core.LoggerManager ---> > System.TypeInitializationException: An exception was thrown > by the type > initializer for log4net.Util.LogLog ---> > System.Configuration.ConfigurationException: Cannot get Type for > System.Diagnostics.DiagnosticsConfigurationHandler, System, > Version=2.0.3600.0, Culture=neutral, > PublicKeyToken=b77a5c561934e089 () > in <0x0008e> System.Configuration.ConfigurationData:CreateNewHandler > (string,System.Configuration.SectionData) > in <0x001cf> > System.Configuration.ConfigurationData:GetHandler (string) > in <0x0005a> > System.Configuration.ConfigurationData:GetHandler (string) > in <0x0002a> System.Configuration.ConfigurationData:GetConfigInternal > (string) > in <0x0009d> System.Configuration.ConfigurationData:GetConfig (string) > in <0x0001f> System.Configuration.DefaultConfig:GetConfig (string) > in <0x00069> System.Configuration.ConfigurationSettings:GetConfig > (string) > in <0x0001c> > System.Diagnostics.DiagnosticsConfiguration:get_Settings () > in <0x0003c> System.Diagnostics.TraceImpl:InitOnce () > in <0x00007> System.Diagnostics.TraceImpl:get_Listeners () > in <0x00037> System.Diagnostics.TraceImpl:WriteLine (string) > in <0x0000a> System.Diagnostics.Trace:WriteLine (string) > in <0x00027> log4net.Util.LogLog:EmitErrorLine (string) > in <0x00030> log4net.Util.LogLog:Error (string,System.Exception) > in <0x000a8> log4net.Util.LogLog:.cctor () > --- End of inner exception stack trace --- > > in (unmanaged) 0x808e825 > in <0x0003d> log4net.Core.LoggerManager:.cctor () > --- End of inner exception stack trace --- > > in (unmanaged) 0x808e825 > in <0x00012> log4net.LogManager:GetLogger > (System.Reflection.Assembly,string) > in <0x00029> log4net.LogManager:GetLogger (System.Type) > in <0x0001b> NAnt.Console.ConsoleStub:.cctor () > --- End of inner exception stack trace --- > > make: *** [build-nant] Error 1 > > Any idea? > j3d. > -- > ---------------------------------------- > Giuseppe Greco > > ::agamura:: > > phone: +41 (0)91 604 67 65 > mobile: +41 (0)79 602 99 27 > email: [EMAIL PROTECTED] > web: www.agamura.com > ---------------------------------------- > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive > Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > nant-developers mailing list > nant-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nant-developers > > ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers