[Mono-list] NAnt

Gonzalo Paniagua Javier gonzalo@ximian.com
24 Sep 2002 16:47:25 +0200


El mar, 24-09-2002 a las 15:48, Martin Aliger escribió:
> Hi all,
> 
> I try compile newest stable NAnt with mcs (to help with docs). Except others these problems/bugs occurs:
> 
> NAnt.cs:GetBuildFileName tries call System.Path.IsPathRooted(null) which throws NullArgumentException. In MS libs maybe not (not tested but NAnt relies on that). I have MS docs avaiable and there is no mension about Exceptions. Further, are you sure, mono implementation of IsPathRooted is CORRECT? I'm not (on Windows)...

Do you have old assemblies?

From Path.cs -> IsPathRooted (string path):
----
if (path == null || path.Length == 0)
	return false;
----

It should not throw a NullArgumentException (the same as MS).

-Gonzalo