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

Attachment: default.build
Description: default.build

Attachment: default.1s.build
Description: default.1s.build

Attachment: default.2s.build
Description: default.2s.build

Reply via email to