I've inherited a vb6 project that has been converted to vb.net.

How do I make a COM reference to the ADORecordSet using the <vbc> task?  
Any help is greatly appreciated.  

Thanks,
kkirkpatrick

In the inherited project file:
              <Reference
                    Name = "ADOR"
                    Guid = "{00000300-0000-0010-8000-00AA006D2EA4}"
                    VersionMajor = "2"
                    VersionMinor = "7"
                    Lcid = "0"
                    WrapperTool = "tlbimp"


My Nant code.

<vbc 
        target="library" 
        output="${build.bin.dir}\${assembly.name}${file.extension}" 
        debug="${debug}" 
        rootnamespace="${assembly.name}" 
        verbose="false" 
        rebuild="true">
        <references>
                <include name="${build.bin.dir}\*.dll"/>
                <include name="Microsoft.VisualBasic.Compatibility.dll"/>
                <include name="System.dll"/>
                <include name="System.Data.dll"/>
                <include name="System.Drawing.dll"/>
                <include name="System.Windows.Forms.dll"/>
                <include name="System.XML.dll"/>
                <include name="System.Collections.dll"/>
                <include name="C:\Program Files\Microsoft.NET\Primary Interop 
Assemblies\AdoDB.dll"/>
                <!--include name="C:\Program Files\Common 
Files\System\ado\msador15.dll"/-->
                <!--tlbimp typelib="C:\Program Files\Common 
Files\System\ado\msador15.dll" output="${assembly.name}${file.extension}" /-->

        </references>
        <sources>
                <include name="${root.dir}\${src.dir}\*.vb"/>
        </sources>
        <imports>
                <import namespace="Microsoft.VisualBasic" />
                <import namespace="Microsoft.VisualBasic.Compatibility" />
                <import namespace="System" />
                <import namespace="System.Collections" />
                <import namespace="System.Data" />
                <import namespace="System.Drawing" />
                <import namespace="System.Diagnostics" />
                <import namespace="System.Windows.Forms" />
                <import namespace="ADODB" />
        </imports>
</vbc>


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to