Use .NET 3.5 temporarily when compiling Quartz and AOP test projects to allow lambdas etc
This commit is contained in:
@@ -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" />
|
||||
|
||||
@@ -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()}">
|
||||
|
||||
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user