Bugs item #1160647, was opened at 2005-03-10 15:22
Message generated for change (Comment added) made by drieseng
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1160647&group_id=31650
Category: Tasks
>Group: 0.85
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Grarl (grarl)
>Assigned to: Gert Driesen (drieseng)
Summary: <midl> task fails on IDL files without a type library
Initial Comment:
If my IDL file only contains interface definitions and does
not output a type library file, the <midl> task will give an
exception complaining that path2 is empty.
To fix this change the following two files:
In MidlTask.cs change:
if (NeedsCompiling(Tlb)) {
return true;
} else if (Header != null && NeedsCompiling
(Header)) {
to:
if (Tlb != null && NeedsCompiling(Tlb)) {
return true;
} else if (Header != null && NeedsCompiling
(Header)) {
And in VcProject.cs change:
string typeLibraryName =
fileConfig.GetToolSetting(compilerTool,
"TypeLibraryName", "$(IntDir)/
$(ProjectName).tlb");
midlTask.Tlb = new FileInfo
(FileUtils.CombinePaths(fileConfig.ProjectDir.FullName,
typeLibraryName));
}
to:
string typeLibraryName =
fileConfig.GetToolSetting(compilerTool,
"TypeLibraryName", "$(IntDir)/
$(ProjectName).tlb");
if (typeLibraryName !=
null) {
midlTask.Tlb = new FileInfo
(FileUtils.CombinePaths(fileConfig.ProjectDir.FullName,
typeLibraryName));
}
----------------------------------------------------------------------
>Comment By: Gert Driesen (drieseng)
Date: 2005-03-11 18:55
Message:
Logged In: YES
user_id=707851
This issue is now fixed in cvs.
Thanks for the report and the repro !!
----------------------------------------------------------------------
Comment By: Grarl (grarl)
Date: 2005-03-11 10:20
Message:
Logged In: YES
user_id=1235618
Ok, I've uploaded files that should allow you to reproduce the
problem.
It seems this only happens if I have more than one IDL file in
the project.
Just copy these 4 files into the same folder and run NAnt in
that folder. You should get the exception described above.
Let me know if I can assist further.
Thanks!
----------------------------------------------------------------------
Comment By: Gert Driesen (drieseng)
Date: 2005-03-10 20:33
Message:
Logged In: YES
user_id=707851
Can you attach a small repro to this bug report ?
Thanks !
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1160647&group_id=31650
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
nant-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-developers