Hi all, I found the bug ! For a reason or another, the second script was adding an empty assembly in the assemblyNames collection. Anyway, what I did is to check that the assembly being added is not an empty string.
Here's the patch, hope this helps. :)
Pat
-----Original Message-----
From: Patrice Calv�
Sent: Thursday, February 13, 2003 11:10
To: [EMAIL PROTECTED]
Subject: RE: [Nant-users] System.IO.FileNotFoundException
Hi,
Would a GUID make good class name? System.Guid.NewGuid(). Maybe simply removing the
"-" and prefixing it to with a letter!
Ex: _rootClassName = "nant" + System.Guid.NewGuid().ToString().Replace("-", "");
Pat
-----Original Message-----
From: Scott Hernandez [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 13, 2003 01:30
To: Patrice Calv�
Cc: [EMAIL PROTECTED]
Subject: Re: [Nant-users] System.IO.FileNotFoundException
MessageThis is a bug; AFAIK. Good catch.
This line needs to be fixed to generate a unique root name for the compiled code. (I
haven't done anymore work than looking at the code for a few minutes to guess at this
solution.)
ScriptTask.cs:138
_rootClassName = /*Target.Name*/ "xx" + "_script_" +
(taskNode.GetHashCode() ^ (taskNode.ParentNode.GetHashCode() << 1)).ToString("X");
Now accepting patches... ;) (Please include/update a unit test for this task too if
possible :)
----- Original Message -----
From: Patrice Calv�
To: [EMAIL PROTECTED]
Sent: Wednesday, February 12, 2003 1:36 PM
Subject: RE: [Nant-users] System.IO.FileNotFoundException
Hi again,
I found something else. I can't have two scripts in the same build file. If I do, the
second one fails. If I reorder them, the same problems happens; the second call dies.
Pat
-------------------------------------------------------
This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your
Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to
all your SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users
NantPatch2003.02.26.patch
Description: NantPatch2003.02.26.patch
