Hi,
I've got the same/similar problem, using: NAnt 0.85 (Build 0.85.1548.0; net-1.0.win32; nightly; 28-Mar-04), where a vb.net project that has a number of references to COM dlls - builds ok in VS.Net and fails to build in nant with the "reference required... " errors.
 
A workaround that works ok for me - for each of the COM dlls, I separately do a tlbimp to a known directory relative to the build work-area, and then changed *all* the references to refer to the tlbimp'd dlls, not the COM dlls directly.    A bit of a pain, but.. adding the tlbimps wasn't too bad.
 
Cheers

 ,-_|\   Garth Ormsby, Internet Group
/     \  Computershare Technology Services
\_,-._*  Sydney Australia                  
     v

-----Original Message-----
From: Ceely, Aron D [mailto:[EMAIL PROTECTED]
Sent: Thursday, 20 May 2004 1:39
To: [EMAIL PROTECTED]
Subject: [ ] [Nant-users] Error with Solution Task

I am getting an error while trying to build an ASP.Net web project, I have pasted parts of the logfile below.

 

[solution] Starting solution build.

 [solution] Only C#, VB.NET and C++ projects are supported.  Skipping project 'CTIP_Data\CTIP_Data.dbp'.

 [solution] Loading projects...

 [solution] Loading project 'e:\Data\Projects\CTIP\ctip_build\buildsolution\CTIP_Lib\CTIP_Lib.vbproj'.

 [solution] Loading project 'E:\Data\Projects\CTIP\ctip_build\Build\tip_build\TIP.vbproj'.

 [solution] Gathering additional dependencies...

 [solution] Fixing up references...

 [solution] Skipping 'CTIP_Lib' [debug]...

 [solution] Fixing up references...

 [solution] Building 'TIP' [debug]...

 [solution] Copying references:

 [solution]  - System.Web

 [solution]  - Office

 [solution] D:\Apps\Microsoft Visual Studio .NET 2003\SDK\v1.1\bin\tlbimp.exe "d:\Apps\Microsoft Office 2000\Office\MSO9.DLL" /silent /out:"e:\Data\Projects\CTIP\ctip_build\build\tip_build\bin\Interop.Office.dll" /namespace:Office

 [solution]  - System.Data

 [solution]  - log4net

                 [copy] Copying 1 file to 'e:\Data\Projects\CTIP\ctip_build\build\tip_build\bin'.

                 [copy] Copying 'E:\Data\Projects\CTIP\ctip_build\Build\tip_build\Assemblies\log4net.dll' to 'e:\Data\Projects\CTIP\ctip_build\build\tip_build\bin\log4net.dll'.

 [solution]  - System.XML

 [solution]  - System.Design

 [solution]  - System

 [solution]  - CommonLib

                 [copy] Copying 1 file to 'e:\Data\Projects\CTIP\ctip_build\build\tip_build\bin'.

                 [copy] Copying 'E:\Data\Projects\CTIP\ctip_build\Build\tip_build\Assemblies\CommonLib.dll' to 'e:\Data\Projects\CTIP\ctip_build\build\tip_build\bin\CommonLib.dll'.

 [solution]  - PowerPoint

 [solution] D:\Apps\Microsoft Visual Studio .NET 2003\SDK\v1.1\bin\tlbimp.exe "d:\Apps\Microsoft Office 2000\Office\msppt9.olb" /silent /out:"e:\Data\Projects\CTIP\ctip_build\build\tip_build\bin\Interop.PowerPoint.dll" /namespace:PowerPoint

 [solution]  - System.Drawing…

 

…[solution]     "E:\Data\Projects\CTIP\ctip_build\Build\tip_build\Classes\ProjectInfo.vb"

            E:\Data\Projects\CTIP\ctip_build\Build\tip_build\Classes\ReportCommon.vb(701) : error BC30652: Reference required to assembly 'Office' containing the type 'Office.MsoTriState'. Add one to your project.

 

 

Essentially, I have some code that is accessing an external COM library for MS Office 2000, and apparently something is having a hard time resolving the code at compile time to determine which assembly to reference.  I have added a reference in the web project to the COM library which creates in Interop assembly with a namespace of Office, however when running the solution task Nant also converts the same DLL using tlbimp.exe as noted above.  I am able to compile to project and solution that contains the project in VS.Net 2003 without a problem, and am a bit stumped as to where to go from here.  If anyone has any experience dealing with a similar issue related to extneral COM library references and knows a work around I would appreciate any information they could provide.  I have also included a snippet from the build file in question.

 

<target name="Clean">

        <solution solutionfile="${build.sourcedir}\CTIP_Web.sln" configuration="${config}" outputdir="${build.dir}" verbose="true">

            <webmap url="" path="">

                <map url="" path="${build.webproj.path}\TIP.vbproj" />               

            </webmap>

            <excludeprojects>

                <includes name="CTIP_Lib.vbproj" />

            </excludeprojects>

        </solution>

    </target>

 

Thanks,

 

Aron Ceely

 



---
This email and any files transmitted with it are solely intended for the use of the addressee(s) and may contain information that is confidential and privileged. If you receive this email in error, please advise us by return email immediately. Please also disregard the contents of the email, delete it and destroy any copies immediately.
Computershare Limited and its subsidiaries do not accept liability for the views expressed in the email or for the consequences of any computer viruses that may be transmitted with this email.
This email is also subject to copyright. No part of it should be reproduced, adapted or transmitted without the written consent of the copyright owner.

Reply via email to