Hi there,


I'm new to nant and am having trouble when referencing .dlls of my own (as opposed to framework .dlls). I retrieve files from two VSS projects, one for my supporting libraries and one for a web application that uses those libs. I save the code files to two directories and create a bin folder under the web application directory. I'm using nant 0.84 (stable) as I keep getting task load errors with 0.85 (nightly).

 

I try to run the following build segment:

<target name="Build" depends="StartLog" description="Performs a complete build of all source code">
<!--Building Util-->
<echo message="Building Util using &lt;csc&gt;" />
<csc output="${sys.websourcepath}\bin\Util.dll" target="library" debug="${sys.debug}" rebuild="true">
<sources>
<includes name="${sys.libsourcepath}\Util\*.cs" />
</sources>
<references>
<include name="System.dll" />
<include name="System.Data.dll" />
<include name="System.Drawing.dll" />
<include name="System.Web.dll" />
<include name="System.XML.dll" />
</references>
</csc>
<echo message="Building Data.dll using &lt;csc&gt;" />
<csc output="${sys.websourcepath}\bin\Data.dll" target="library" debug="${sys.debug}" rebuild="true">
<sources>
<includes name="${sys.libsourcepath}\Data\*.cs" />
</sources>
<references>
<include name="System.dll" />
<include name="System.Data.dll" />
<include name="System.XML.dll" />
</references>
</csc>
<echo message="Building Prz.dll using &lt;csc&gt;" />
<csc output="${sys.libsourcepath}\bin\Prz.dll" target="library" debug="${sys.debug}">
<references basedir="${sys.websourcepath}\bin">
<include name="Data.dll" />
<include name="System.dll" />
<include name="System.Data.dll" />
<include name="System.Web.dll" />
<include name="System.XML.dll" />
<include name="Util.dll" />
</references>
<sources>
<includes name="${sys.libsourcepath}\Prezza\*.cs" />
</sources>
</csc>
<call target="EndLog" />
</target>

As you can see, I'm trying to output the built assemblies to the \bin directory of my web application. It works for the first two but when it hits the third, I get assembly reference errors (CS0234). The only difference I can tell is that I am now trying to reference the newly built libraries Data.dll and Util.dll.

Am I misunderstanding the proper use of <references>?

Thanks for any help you all can offer!

Peter

 

Reply via email to