<?xml version="1.0" ?>
<project name="SpringAir.Core.Tests" default="build" xmlns="http://nant.sf.net/schemas/nant.xsd">
	<!--
        Required properties:
            * current.bin.dir           - (path) root level to build to
            * build.debug               - (true|false) debug build?
            * current.build.defines.csc - framework-specific build defines
    -->
	<target name="build">
		<csc target="library" define="${current.build.defines.csc}" warnaserror="true"
			debug="${build.debug}" output="${current.bin.dir}/${project::get-name()}.dll">
			<nowarn>
				<warning number="168" />
			</nowarn>
			<sources failonempty="true">
				<include name="**/*.cs" />
			</sources>
			<references basedir="${current.bin.dir}">
				<include name="*.dll" />
				<exclude name="${project::get-name()}.dll" />
			</references>
		</csc>
	</target>
	<target name="test" depends="build">
		<if test="${nant.settings.currentframework!='mono-2.0'}">
			<nunit2outproc>
				<formatter type="Plain" />
				<formatter type="Xml" usefile="true" extension=".xml"
					   outputdir="${current.bin.dir}/results" />
				<test assemblyname="${current.bin.dir}/${project::get-name()}.dll"
				      appconfig="${project::get-name()}.dll.config" />
			</nunit2outproc>
	  	</if>
		<if test="${nant.settings.currentframework=='mono-2.0'}">
			<nunit2>
			<formatter type="Plain" />
			<formatter type="Xml" usefile="true" extension=".xml"
				 outputdir="${current.bin.dir}/results" />
			<test assemblyname="${current.bin.dir}/${project::get-name()}.dll"
			    appconfig="${current.bin.dir}/${project::get-name()}.dll.config" />
			</nunit2>
		</if>
		
	</target>
</project>
