[Mono-list] error building Nant with Nant (using mono in linux)

Jeroen Janssen japj@xs4all.nl
Mon, 30 Dec 2002 14:01:19 +0100


Hello,

I'm trying to build Nant with Nant under linux and I have a problem (see 
below).
Can anybody help me find out where exactly the problem is? (is the mono 
class libraries, or the jit/interpreter?)
-----
japj@debian:~/cvs/mcs/nant$ mono --debug ./Nant.exe
Buildfile: /home/japj/cvs/mcs/nant/NAnt.build
   [tstamp] 12/30/2002 12:56:35

INTERNAL ERROR
System.InvalidCastException: Cannot cast from source type to destination 
type
in [0x0007e] (at /home/japj/cvs/mcs/nant/./src/Task.cs:158) 00 
SourceForge.NAnt.Task:AutoExpandAttributes ()
in [0x00000] (at /home/japj/cvs/mcs/nant/./src/Task.cs:182) 00 
SourceForge.NAnt.Task:Execute ()
in [0x001c1] (at /home/japj/cvs/mcs/nant/./src/Project.cs:254) 00 
SourceForge.NAnt.Project:Initialize (System.Xml.XmlDocument)
in [0x00102] (at /home/japj/cvs/mcs/nant/./src/Project.cs:159) 00 
SourceForge.NAnt.Project:Run ()

Try `Nant -help' for more information.
japj@debian:~/cvs/mcs/nant$
-----

Note I have first build Nant using "msc /out:NAnt.exe /recurse:*.cs". 
When I try to run the resulting Nant in Windows I get

-----
Buildfile: D:\cvs_wa\mono\mcs\nant\NAnt.build
   [tstamp] 12/30/2002 13:59:14

INTERNAL ERROR
System.TypeLoadException: Could not load type 
System.Text.RegularExpressions.Reg
exCollectionBase from assembly System, Version=1.0.3300.0, 
Culture=neutral, Publ
icKeyToken=b77a5c561934e089.
   at SourceForge.NAnt.Project.ExpandText(String input)
   at SourceForge.NAnt.Task.AutoExpandAttributes()
   at SourceForge.NAnt.Project.Initialize(XmlDocument doc)
   at SourceForge.NAnt.Project.Run()
Try `Nant -help' for more information.
-----

Best regards,

Jeroen