Use .NET 3.5 temporarily when compiling Quartz and AOP test projects to allow lambdas etc

This commit is contained in:
Marko Lahma
2012-02-12 23:09:34 +02:00
parent d808bb1a95
commit d57395e883
3 changed files with 22 additions and 0 deletions

View File

@@ -11,6 +11,9 @@
-->
<target name="build">
<!-- build Spring.Aop -->
<!-- use .NET 3.5 compiler for tests to allow lambdas etc -->
<property name="temp.nant.settings.currentframework" value="${nant.settings.currentframework}" />
<property name="nant.settings.currentframework" value="net-3.5" />
<csc target="library" define="${current.build.defines.csc}"
warnaserror="true"
optimize="${build.optimize}"
@@ -46,6 +49,10 @@
</references>
</csc>
<!-- restore old framework setting -->
<property name="nant.settings.currentframework" value="${temp.nant.settings.currentframework}" />
<copy todir="${current.bin.dir}">
<fileset basedir="${project::get-base-directory()}/Data">
<include name="**/*.xml" />

View File

@@ -11,6 +11,10 @@
-->
<target name="build">
<!-- use .NET 3.5 compiler for tests to allow lambdas etc -->
<property name="temp.nant.settings.currentframework" value="${nant.settings.currentframework}" />
<property name="nant.settings.currentframework" value="net-3.5" />
<csc target="library" define="${current.build.defines.csc}"
warnaserror="true"
optimize="${build.optimize}"
@@ -30,6 +34,9 @@
<exclude if="${net-4.0}" name="System.Web.Extensions.dll" />
</references>
</csc>
<!-- restore old framework setting -->
<property name="nant.settings.currentframework" value="${temp.nant.settings.currentframework}" />
<copy todir="${current.bin.dir}" verbose="true">
<fileset basedir="${project::get-base-directory()}">

View File

@@ -17,6 +17,10 @@
<include name="**/*.dll" />
</fileset>
</copy>
<!-- use .NET 3.5 compiler for tests to allow lambdas etc -->
<property name="temp.nant.settings.currentframework" value="${nant.settings.currentframework}" />
<property name="nant.settings.currentframework" value="net-3.5" />
<csc target="library" define="${current.build.defines.csc}"
warnaserror="true"
@@ -36,6 +40,10 @@
<exclude name="${project::get-name()}.dll" />
</references>
</csc>
<!-- restore old framework setting -->
<property name="nant.settings.currentframework" value="${temp.nant.settings.currentframework}" />
<copy todir="${current.bin.dir}">
<fileset basedir="${project::get-name()}/Data">
<include name="**/*.xml" />