fixed moviefinder csc task to reference local lib folder (for log4net)

This commit is contained in:
eeichinger
2009-01-16 01:18:50 +00:00
parent f75552c02c
commit 0cc36fa4fc

View File

@@ -8,11 +8,14 @@
-->
<target name="build">
<property name="local.lib.dir" value="lib/${framework::get-family(framework::get-target-framework())}/${framework::get-version(framework::get-target-framework())}"/>
<!-- build MovieFinder -->
<csc target="exe"
define="${current.build.defines.csc}"
<csc target="exe"
define="${current.build.defines.csc}"
warnaserror="true"
debug="${current.build.debug}"
debug="${current.build.debug}"
output="${current.bin.dir}/${project::get-name()}.exe">
<sources failonempty="true">
<include name="**/*.cs" />
@@ -23,21 +26,21 @@
<nowarn>
<warning number="${nowarn.numbers}" />
</nowarn>
<references basedir="${current.bin.dir}">
<references basedir="${local.lib.dir}">
<include name="${current.bin.dir}/Common.Logging.dll"/>
<include name="${current.bin.dir}/Spring.Core.dll" />
<include name="log4net.dll" />
<include name="Common.Logging.dll"/>
<include name="Common.Logging.Log4Net.dll"/>
<include name="Spring.Core.dll" />
<include name="Common.Logging.Log4Net.dll"/>
</references>
</csc>
<copy tofile="${current.bin.dir}/${project::get-name()}.exe.config"
<copy tofile="${current.bin.dir}/${project::get-name()}.exe.config"
file="src/App.config" overwrite="true">
</copy>
<copy todir="${current.bin.dir}"
overwrite="true"
flatten="true">
<fileset basedir=".">
<include name="**/movies.txt"/>
<include name="**/movies.txt"/>
</fileset>
</copy>
</target>