The MIDL task throws an error on the second time run if
the following parameters are not specified:
- header
- iid
The error is:
======================
INTERNAL ERROR
System.ArgumentNullException: Value cannot be null.
Parameter name: path2
at System.IO.Path.Combine(String path1, String path2)
at NAnt.VisualCpp.Tasks.MidlTask.NeedsCompiling
(String outputFile) in c:\Program Files\Nant\nant-0.85-
rc1\src\NAnt.VisualCpp\Tasks\MidlTask.cs:line 364
at NAnt.VisualCpp.Tasks.MidlTask.NeedsCompiling() in
c:\Program Files\Nant\nant-0.85-rc1
\src\NAnt.VisualCpp\Tasks\MidlTask.cs:line 344
at NAnt.VisualCpp.Tasks.MidlTask.ExecuteTask() in
c:\Program Files\Nant\nant-0.85-rc1
\src\NAnt.VisualCpp\Tasks\MidlTask.cs:line 302
at NAnt.Core.Task.Execute() in c:\Program
Files\Nant\nant-0.85-rc1\src\NAnt.Core\Task.cs:line 177
at NAnt.Core.Target.Execute() in c:\Program
Files\Nant\nant-0.85-rc1\src\NAnt.Core\Target.cs:line
249
at NAnt.Core.Project.Execute(String targetName,
Boolean forceDependencies) in c:\Program
Files\Nant\nant-0.85-rc1\src\NAnt.Core\Project.cs:line
882
at NAnt.Core.Project.Execute() in c:\Program
Files\Nant\nant-0.85-rc1\src\NAnt.Core\Project.cs:line
839
at NAnt.Core.Project.Run() in c:\Program
Files\Nant\nant-0.85-rc1\src\NAnt.Core\Project.cs:line
908
=================
To reproduce the problem, write the following task in a
build file (With a correct filename):
<midl filename="EIV5Serial.odl"
tlb="Debug\EIV5Serial.tlb" />
The first run of the build works fine, the second time you
will get an exception.
Hope this helps..
Thanks,
Gert Driesen
Tasks
0.85
Public
|
Date: 2004-12-04 17:13 Logged In: YES |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2004-12-04 17:13 | drieseng |
| resolution_id | None | 2004-12-04 17:13 | drieseng |
| assigned_to | nobody | 2004-12-04 17:13 | drieseng |
| close_date | - | 2004-12-04 17:13 | drieseng |
| artifact_group_id | 0.84-rc1 | 2004-12-03 21:56 | haniatassi |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use