4 name=
"Castle.DynamicProxy2.Tests"
6 xmlns=
"http://nant.sf.net/release/0.85/nant.xsd"
9 <property name=
"root.dir" value=
"../../.." />
10 <include buildfile=
"${root.dir}/common-project.xml" />
12 <if test=
"${not property::exists('dp2.test')}">
13 <property name=
"dp2.test" value=
"${common.run-tests}" />
15 <property name=
"common.testrunner.enabled" value=
"${dp2.test}" />
17 <target name=
"init" depends=
"common.init">
18 <property name=
"assembly.is-cls-compliant" value=
"false" />
20 <assemblyfileset id=
"project.references" basedir=
"${build.dir}">
21 <include name=
"nunit.framework.dll" />
22 <include name=
"Castle.DynamicProxy2.dll" />
23 <include name=
"Castle.Core.dll" />
24 <include name=
"System.Configuration.dll" />
25 <include name=
"System.Data.dll" />
28 <resourcefileset id=
"project.resources" prefix=
"Resources" dynamicprefix=
"false">
29 <include name=
"${src.dir}/**/*.txt" />
30 <exclude name=
"obj/**" />
34 <target name=
"configure-tests">
36 <property name=
"app.config" value=
"${build.dir}/${project::get-name()}.dll.config" />
38 <!-- make sure the config file is writable -->
39 <attrib file=
"${app.config}" readonly=
"false" />
43 xpath=
"/configuration/appSettings/add[@key='sdkDir']/@value"
44 value=
"${framework::get-sdk-directory(framework::get-target-framework())}"
48 <target name=
"generate-assemblyinfo" depends=
"init common.generate-assemblyinfo" />
50 <target name=
"test" depends=
"init generate-assemblyinfo common.compile-tests configure-tests common.run-tests" description=
"Runs the tests" />