Hi there,
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
<csc>" />
<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
<csc>" />
<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
<csc>" />
<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
|