Pedro,

If you ask me, this is caused by a major regression in Mono.

I've reported this already, but got no feedback yet:

http://bugzilla.ximian.com/show_bug.cgi?id=75284

Gert

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Pedro Santos
> Sent: zaterdag 18 juni 2005 20:06
> To: nant-users@lists.sourceforge.net
> Subject: [Nant-users] Mono Problems
> 
> 
> I am having a hard time getting nant to work with a recent 
> Mono release. When 
> I try to build a project, I get this:
> 
> --------------------------------------------------------------
> -----------------------------------------
> pre:~/Projects/orionsbelt/bootstrap $ mono 
> ~/Programs/Mono/nant/nant-0.85-rc3/bin/NAnt.exe
> 
> NAnt 0.85 (Build 0.85.1932.0; rc3; 4/16/2005)
> Copyright (C) 2001-2005 Gerry Shaw
> http://nant.sourceforge.net
> 
> 
> ** 
> (/home/pre/Programs/Mono/nant/nant-0.85-rc3/bin/NAnt.exe:6693)
> : WARNING **: 
> Cannot load type 'NAnt.DotNet.Types.DebugOutputConverter'
> [loadtasks] Failure scanning "NAnt.DotNet.Types.DebugOutput, 
> NAnt.DotNetTasks, 
> Version=0.85.1932.0, Culture=neutral, PublicKeyToken=null" for tasks.
> [loadtasks] Failure scanning 
> \"/home/pre/Programs/Mono/nant/nant-0.85-rc3/bin/NAnt.DotNetTa
> sks.dll\" for 
> extensions. Object reference not set to an instance of an object
> Buildfile: 
> file:///home/pre/Projects/orionsbelt/bootstrap/Orionsbelt.build
> Target framework: Mono 1.0 Profile
> Target(s) specified: build
> 
> 
> clean:
> 
> 
> ** 
> (/home/pre/Programs/Mono/nant/nant-0.85-rc3/bin/NAnt.exe:6693)
> : WARNING **: 
> Cannot load type 'NAnt.Core.Tasks.PropertyTask'
> 
> BUILD FAILED
> 
> INTERNAL ERROR
> 
> System.ArgumentNullException: Argument cannot be null.
> Parameter name: ElementType
> in <0x00037> 
> NAnt.Core.Attributes.BuildElementArrayAttribute:set_ElementType 
> (System.Type value)
> in <0x00000> <unknown method>
> in (wrapper managed-to-native) 
> System.MonoCustomAttrs:GetCustomAttributesInternal 
> (System.Reflection.ICustomAttributeProvider,bool)
> in <0x0000f> System.MonoCustomAttrs:GetCustomAttributesBase 
> (ICustomAttributeProvider obj)
> in <0x00089> System.MonoCustomAttrs:GetCustomAttributes 
> (ICustomAttributeProvider obj, System.Type attributeType, 
> Boolean inherit)
> in <0x00019> System.MonoCustomAttrs:GetCustomAttribute 
> (ICustomAttributeProvider obj, System.Type attributeType, 
> Boolean inherit)
> in <0x00020> System.Attribute:GetCustomAttribute 
> (System.Reflection.MemberInfo 
> element, System.Type attributeType, Boolean inherit)
> in <0x000df> 
> NAnt.Core.Element+AttributeConfigurator:InitializeAttribute 
> (System.Reflection.PropertyInfo propertyInfo)
> in <0x0007c> NAnt.Core.Element+AttributeConfigurator:Initialize ()
> in <0x0003d> NAnt.Core.Element:InitializeXml 
> (System.Xml.XmlNode elementNode, 
> NAnt.Core.PropertyDictionary properties, 
> NAnt.Core.FrameworkInfo framework)
> in <0x000a1> NAnt.Core.Element:Initialize (System.Xml.XmlNode 
> elementNode, 
> NAnt.Core.PropertyDictionary properties, 
> NAnt.Core.FrameworkInfo framework)
> in <0x0004d> NAnt.Core.Element:Initialize (System.Xml.XmlNode 
> elementNode)
> in <0x00068> NAnt.Core.Project:CreateTask (System.Xml.XmlNode 
> taskNode, 
> NAnt.Core.Target target)
> in <0x00179> NAnt.Core.Target:Execute ()
> in <0x000a0> NAnt.Core.Project:Execute (System.String 
> targetName, Boolean 
> forceDependencies)
> in <0x001c9> NAnt.Core.Project:Execute ()
> in <0x001e4> NAnt.Core.Project:Run ()
> 
> Please send bug report to [EMAIL PROTECTED]
> 
> Total time: 0.1 seconds.
> --------------------------------------------------------------
> -----------------------------------------
> 
> When I try to compile NAnt on linux/mono I get this:
> 
> --------------------------------------------------------------
> -----------------------------------------
> pre:~/Programs/Mono/nant/nant-cvs/nant $ make
> mkdir -p bootstrap
> cp -R lib/ bootstrap/lib
> # Mono loads log4net before privatebinpath is set-up, so we 
> need this in the 
> same directory
> # as NAnt.exe
> cp lib/log4net.dll bootstrap
> cp src/NAnt.Console/App.config bootstrap/NAnt.exe.config
> mcs -target:exe -define:MONO -out:bootstrap/NAnt.exe 
> -r:bootstrap/log4net.dll 
> \
> -recurse:src/NAnt.Console/*.cs src/CommonAssemblyInfo.cs
> 
> ** (/home/pre/bin/mono-svn//lib/mono/1.0/mcs.exe:6759): 
> WARNING **: Cannot 
> load type 'log4net.Layout.RawLayoutConverter'
> 
> Unhandled Exception: System.NullReferenceException: Object 
> reference not set 
> to an instance of an object
> in <0x00010> log4net.Util.SystemInfo:AssemblyQualifiedName 
> (System.Type type)
> in <0x0001d> log4net.Util.TypeConverters.TypeConverterAttribute:.ctor 
> (System.Type converterType)
> in <0x00000> <unknown method>
> in (wrapper managed-to-native) 
> System.MonoCustomAttrs:GetCustomAttributesInternal 
> (System.Reflection.ICustomAttributeProvider,bool)
> in <0x0000f> System.MonoCustomAttrs:GetCustomAttributesBase 
> (ICustomAttributeProvider obj)
> in <0x00089> System.MonoCustomAttrs:GetCustomAttributes 
> (ICustomAttributeProvider obj, System.Type attributeType, 
> Boolean inherit)
> in <0x0001a> System.MonoType:GetCustomAttributes (System.Type 
> attributeType, 
> Boolean inherit)
> in <0x0003d> 
> Mono.CSharp.AttributeTester:AnalyzeTypeCompliance (System.Type 
> type)
> in <0x000b9> Mono.CSharp.AttributeTester:IsClsCompliant 
> (System.Type type)
> in <0x000ce> 
> Mono.CSharp.AttributeTester:VerifyTopLevelNameClsCompliance ()
> in <0x00bdd> Mono.CSharp.Driver:MainDriver (System.String[] args)
> in <0x0000f> Mono.CSharp.Driver:Main (System.String[] args)
> make: *** [bootstrap/NAnt.exe] Error 1
> --------------------------------------------------------------
> -----------------------------------------
> 
> Thanks
> 
> -- 
> Pedro Santos
> www.psantos.net
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> Nant-users mailing list
> Nant-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nant-users
> 



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to