I am having problems with the following vbc task:

<vbc target="library" output="build\debug\${project_name}.dll">
                        <imports>
                            <import namespace="System.Data" />
                            <import namespace="System.EnterpriseServices"/>
                            <import namespace="System.Xml" />
                            <import namespace="System.Web" />

                        </imports>
                        <references basedir=".">
                                <include name="lib\**\*.dll"/>
                                <include name="build\debug\*.dll"/>
                        </references>
                        <sources basedir="Source\${project_name}\Source">
                                <include name="**/*.vb"/>
                        </sources>
                        </vbc>

The project is referencing System.EnterpriseServices and we receive the
following error:

     [echo] Compiling project: Resources
      [vbc] Compiling 2 files to 'D:\Visual Studio Projects\WORK
NGC\ARCHITECTURE\build\debug\PROJECT.Resources.dll'.
      [vbc] D:\Visual Studio Projects\WORK
NGC\ARCHITECTURE\lib\System.EnterpriseServices.Thunk.dll : error
BC31011: Unable to load referenced library 'D:\Visual Studio
Projects\WORK
NGC\ARCHITECTURE\lib\System.EnterpriseServices.Thunk.dll': The
system cannot find the file specified.
      [vbc] vbc : error BC30142: Unable to generate a reference to file
'D:\Visual Studio Projects\WORK
NGC\ARCHITECTURE\lib\System.EnterpriseServices.dll' (use TLBIMP
utility to reference COM DLLs): Error importing module
'System.EnterpriseServices.Thunk.dll' of assembly 'D:\Visual Studio
Projects\WORK NGC\ARCHITECTURE\lib\System.EnterpriseServices.dll' -- The
system cannot find the file specified.


I tried copying the System.EnterpriseServices.Thunk.dll to our local
library folder (we did copy System.Enterprises.dll to it) and referencing
it there but then the VB compiler complained about the library not being
accessible because it was not an assembly.

Can anyone offer help on how to use the NAnt vbc task in this situation?

Thank you!

Peter



-------------------------------------------------------
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-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to