[Mono-list] NAnt & Mono

Gonzalo Paniagua Javier gonzalo@ximian.com
04 May 2003 14:33:07 +0200


El dom, 04 de 05 de 2003 a las 13:28, Giuseppe Greco escribió:
> Hi all,
> 
> I started using NAnt instead of make... and I'm building
> all my Mono and non-Mono projects with it.
> 
> NAnt works excellently on Windows with .NET (even if I don't
> use do develop on Windows), but there are some small problems
> on Linux with Mono (of course, they will disappear as soon as
> Mono becomes more mature)...
> 
> My development platform is based on RedHat Linux 8.0, and
> I'm using the latest version of Mono from CVS (I checked it
> out yesterday).
> 
> I've a build file which contains a target like this
> (it works whit .NET on Windows):
> 
> <target name="build">
>   ...
>   <ifnot uptodatefile="${build.dir}/images/corplogo.xcf"
>     comparefile="corplogo.xcf">
>     <exec program="sh" commandline="xcftoall --gif corplogo.xcf"/>
>   </ifnot>
>   ...
> </target>
> 
> 
> When trying to execute the target above, I get the following
> error messages:
> 
> INTERNAL ERROR
> System.NotImplementedException: The requested feature is not yet
> implemented
> in (unmanaged) /usr/local/lib/libmono.so.0(mono_raise_exception+0x20)
> [0x4008c82e]
> in (unmanaged) /usr/local/lib/libmono.so.0 [0x40093b58]
> in <0x0002e> 06 System.CurrentTimeZone:GetTimeZoneData
> (int,long[]&,string[]&)
[...]

> Does anybody know from where comes this error? Does anybody
> build projects with NAnt on Linux?

The year passed to GetTimeZoneData is < 1900 or > 2100.
Yesterday I built corlib, System and their tests using nant on linux. I
had to create a few symlinks (corlib.dll -> mscorlib.dll, mcs -> csc)
because that's what nant 0.6.0 looks for.

> 
> Just another point of discussion:
> I think it would be great to include NAnt in the Mono
> distribution as the 'official' build tool...
> What do you think about that?

I tried it yesterday. It does not work yet (I found that we have not
implemented yet some features that are used from log4net).

-Gonzalo