It would be better if it did load a new appdomain. Otherwise every assembly loaded will hang around until NAnt terminates. See the assemblyinfo task ( AssemblyInfoTask.cs) for a simple example of the spawning app-domain technique.

Ian

Hi,

after a while looking where the error was, I reworked my
changes, did a few comments and a diff file for patching.

You may want to take a look at it - I did not created a new
AppDomain, but it is functionally on my system now. If this
is correct, it could be submitted to CVS.

-sa



------------------------------------------------------------------------

151c151,157
< alAssemblyFilesLoaded.Add(Path.GetFullPath(asmLoaded.Location).ToLower(CultureInfo.InvariantCulture));
---


/* It can happen that an empty or null string is in the
* collection. If so, Getpath fails.
* Just ignore them (what else could we do
*/
if (asmLoaded.Location.TrimEnd().TrimStart() != "" && asmLoaded.Location != null) {
alAssemblyFilesLoaded.Add(Path.GetFullPath(asmLoaded.Location).ToLower(CultureInfo.InvariantCulture));
}


168c174
< Log(Level.Verbose, LogPrefix + " - " + strAssembly + " (loaded with real filename)");
---


Log(Level.Verbose, LogPrefix + strAssembly + " (loaded with real filename)");


171c177
< Log(Level.Verbose, LogPrefix + " - " + strAssembly + " (not loaded)");
---


Log(Level.Verbose, LogPrefix + strAssembly + " (not loaded)");


179c185
< ---




184c190
< Log(Level.Verbose, "");
---




197c203
< ---





237c243
< Log(Level.Info, ((Type) htLicenses[strLine]).Assembly.CodeBase);
---


Log(Level.Info, LogPrefix + ((Type) htLicenses[strLine]).Assembly.CodeBase);


254c260
< ---




256a263


Log(Level.Verbose, LogPrefix + "Deleting existing " + strResourceFilename);


260c267
< ---





266a274,277


           Log(Level.Verbose, LogPrefix + "Created " + strResourceFilename);
           dlc = null;

return;







------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to