Hi, I am currently in the process of converting some build scripts from batch files to nant build files.

 

I have a .Net solution that references ADODB.dll in the GAC.

 

The project file for this reference looks like this:

 

                <Reference

                    Name = "ADODB"

                    Guid = "{00000201-0000-0010-8000-00AA006D2EA4}"

                    VersionMajor = "2"

                    VersionMinor = "1"

                    Lcid = "0"

                    WrapperTool = "primary"

                />

 

When I build this solution from Visual Studio IDE, it compiles correctly without any error messages.

 

Likewise when I compile it using the old batch file scripts that use ‘devenv’ to build the solutions, no error messages appear.

 

However, when I have built the corresponding <solution> task in nant to build, I get the following error:

 

NAnt 0.85 (Build 0.85.2344.0; rc4; 2/06/2006)

Copyright (C) 2001-2006 Gerry Shaw

http://nant.sourceforge.net

 

Buildfile: file:///C:/CCBuildScripts/build_COIN_002.build

Target framework: Microsoft .NET Framework 1.1

Target(s) specified: test

 

 

test:

 

 [solution] Starting solution build.

 

BUILD FAILED

 

Couldn't find Primary Interop Assembly "ADODB", referenced by project "AuditTrailBase".

 

Total time: 0.2 seconds.

 

The nant build file I have written is copied here:

 

<?xml version="1.0"?>

<project default="test">

    <!-- set the configuration of the build here. Release/Debug -->

            <property name="configuration" value="Release" />

 

            <!-- set the framework to target here -->

            <property name="nant.settings.currentframework" value="net-1.1" />

           

            <!-- set the version of COIN we are building -->

            <property name="COINVersion" value="2.6"/>

           

           

            <!-- set the path of the source file location for the HSTools here -->

            <property name="versionPath" value="c:\HolisticFS\HSTOOLSv${COINVersion}" />

 

           

            <target name="test">

                        <solution configuration="${configuration}" solutionfile="${versionPath}\AuditTrailBase\AuditTrailBase.sln"/>               

            </target>

           

</project>

 

When I look into the “C:\WINDOWS\assembly” directory of the machine, I see “ADODB” in existence there. Also, other solutions that I have tried that do not have this “ADODB” reference build correctly without errors in nant.

 

Any ideas why this is happening? Thanks

 

Hilton

 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to