Aaron, Can you try using a recent nightly build ? I think we fixed this issue a while ago.
Gert ----- Original Message ----- From: "Aaron Neerenberg" <[EMAIL PROTECTED]> To: <nant-developers@lists.sourceforge.net> Cc: <[EMAIL PROTECTED]>; "Aaron Neerenberg" <[EMAIL PROTECTED]> Sent: Thursday, November 17, 2005 7:08 PM Subject: [nant-dev] possible bug with multiple script segments? Here's an interesting one. I have attached 3 files, default.build, default.1s.build, and default.2s.build. Default.build is a small NAnt project file containing 2 script segments with VB functions. Default.1s.build is the same file, but with one of the script segments removed. Default.2s.build is the same file, but with the other segment removed instead. When I attempt to use default.build, I receive a non-fatal, internal error as follows: C:\wc_build>nant -buildfile:default.build foobleh NAnt 0.85 (Build 0.85.1932.0; rc3; 4/16/2005) Copyright (C) 2001-2005 Gerry Shaw http://nant.sourceforge.net Buildfile: file:///C:/wc_build/default.build Target framework: Microsoft .NET Framework 1.1 Target(s) specified: foobleh [script] Scanning assembly "e_0f3wc7" for extensions. [script] Scanning assembly "lywj0gwb" for extensions. [script] Failure scanning "nant46a205bf050d4330885efdc9c8d50bd9+foo4_c, lywj0gwb, Version=0.0.0.0, Culture=neutral, PublicKeyTo ken=null" for tasks. BUILD FAILED - 1 non-fatal error(s), 0 warning(s) INTERNAL ERROR System.ArgumentNullException: Value cannot be null. Parameter name: element at System.Attribute.GetCustomAttributes(MemberInfo element, Type type, Boolean inherit) at System.Attribute.GetCustomAttribute(MemberInfo element, Type attributeType, Boolean inherit) at NAnt.Core.TaskBuilder..ctor(String className, String assemblyFileName) at NAnt.Core.TypeFactory.ScanTypeForTasks(Type type, Task task) at NAnt.Core.TypeFactory.ScanAssembly(Assembly assembly, Task task) at NAnt.DotNet.Tasks.ScriptTask.ExecuteTask() at NAnt.Core.Task.Execute() at NAnt.Core.Project.InitializeProjectDocument(XmlDocument doc) at NAnt.Core.Project.Execute() at NAnt.Core.Project.Run() Please send bug report to [EMAIL PROTECTED] Total time: 0.8 seconds. On the other hand, using default.1s.build or default.2s.build, everything works as I would expect: C:\wc_build>nant -buildfile:default.1s.build foobleh NAnt 0.85 (Build 0.85.1932.0; rc3; 4/16/2005) Copyright (C) 2001-2005 Gerry Shaw http://nant.sourceforge.net Buildfile: file:///C:/wc_build/default.1s.build Target framework: Microsoft .NET Framework 1.1 Target(s) specified: foobleh [script] Scanning assembly "hlbeavjq" for extensions. foobleh: [echo] 54321 BUILD SUCCEEDED Total time: 0.4 seconds. C:\wc_build>nant -buildfile:default.2s.build foobleh NAnt 0.85 (Build 0.85.1932.0; rc3; 4/16/2005) Copyright (C) 2001-2005 Gerry Shaw http://nant.sourceforge.net Buildfile: file:///C:/wc_build/default.2s.build Target framework: Microsoft .NET Framework 1.1 Target(s) specified: foobleh [script] Scanning assembly "bnllose5" for extensions. foobleh: [echo] 12345 BUILD SUCCEEDED Total time: 0.4 seconds. Does anyone have any ideas what might be wrong with default.build or with NAnt? Please note that I am not a member of this mailing list. Thank you, Aaron Neerenberg Cascade Microtech ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers