Bugs item #1190093, was opened at 2005-04-26 04:41 Message generated for change (Comment added) made by richardgavel You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1190093&group_id=31650
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Tasks Group: 0.85 Status: Closed Resolution: Fixed Priority: 5 Submitted By: IronEVG (ironevg) Assigned to: Gert Driesen (drieseng) Summary: solution task can't compile project with Interop.Excel ref. Initial Comment: I created an empty class library project and added reference to COM Microsoft Excel 11.0 Object Library. The corresponding minimal project is attached as a .zip. Visual Studio compiles the project without any problems, but NANT can't: NAnt 0.85 (Build 0.85.1936.0; nightly; 20.04.2005) Copyright (C) 2001-2005 Gerry Shaw http://nant.sourceforge.net Buildfile: file:///C:/Documents and Settings/Administrator/My Documents/Visual Studio Projects/interopTest/App.build Target framework: Microsoft .NET Framework 1.1 Target(s) specified: build build: [solution] Starting solution build. [solution] Loading projects... [solution] Loading project 'C:\Documents and Settings\Administrator\My Documents\Visual Studio Projects\interopTest\ClassLibrary1\ClassLibrary1.vbproj'. BUILD FAILED Primary Interop Assembly "Microsoft.Office.Interop.Excel, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c", referenced by project "ClassLibrary1", could not be loaded. File or assembly name Microsoft.Office.Interop.Excel, or one of its dependencies, was not found. Total time: 8.9 seconds. ---------------------------------------------------------------------- Comment By: Richard Gavel (richardgavel) Date: 2006-01-20 21:27 Message: Logged In: YES user_id=1178525 I actually haven't seen the issue shinghei mentioned fixed in any version of the solution task. NAnt must find the version of the type library mentioned in the project file, or else it will not create the Interop assembly. Visual Studio, on the other hand, will use the latest version equal to or greater than the version referenced. I'm not sure if this is with respect to only the minor version or both major and minor (meaning if the project references 2.1 and versions 2.2 and 3.0 are registered, I do not know is VS would use 2.2 or 3.0). If you look into the VB6 task within NAntContrib, you'll find that they had to deal with the same issue. I have had to work around this via individual xmlpoke calls to each of the affected project files, but I would love to see this fixed in the class. ---------------------------------------------------------------------- Comment By: Shing (shinghei) Date: 2006-01-19 17:46 Message: Logged In: YES user_id=461688 Hello, I have a similar problem with Outlook 2003 **************** BUILD FAILED - 0 non-fatal error(s), 1 warning(s) Couldn't find type library "Outlook" (TYPELIB\{00062FFF-0000-0000-C000-000000000046}\9.0\0\win32), referenced by project "Feedback". Total time: 7.5 seconds. **************** Similar to IronEVG's experience, the project would build fine under Visual Studio but failed when using NAnt. This is due to the mismatch of the minor version of the outlook type library. The project specifies 9.0 while I have 9.2. But it works just fine in the IDE. I just tried "nant-0.85-nightly-2005-12-13" but it didn't work. Please help! Thanks, Shing ---------------------------------------------------------------------- Comment By: Shing (shinghei) Date: 2006-01-19 17:12 Message: Logged In: YES user_id=461688 I'd love to see this fix included in an official release or RC... ---------------------------------------------------------------------- Comment By: Gert Driesen (drieseng) Date: 2005-05-29 05:39 Message: Logged In: YES user_id=707851 This is now fixed in cvs. I'll upload a new nightly build later today. Thanks for the report ! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1190093&group_id=31650 ------------------------------------------------------- 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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ nant-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nant-developers
