Bugs item #1160647, was opened at 2005-03-10 14:22
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1160647&group_id=31650

Category: Tasks
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Grarl (grarl)
Assigned to: Nobody/Anonymous (nobody)
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));
                        }


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

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
nant-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to