Add .NET 3.0 framework to the build.

Spring.Services.ServiceModel compiles under .NET 3.0 (i.e. no .NET 3.5 language features used anymore)
This commit is contained in:
markpollack
2008-08-13 20:11:46 +00:00
parent 4e5a785273
commit 7ebe06f69b
12 changed files with 296 additions and 41 deletions

View File

@@ -252,6 +252,24 @@
</if>
</target>
<target name="compile-build-3.0" description="Builds for .NET 3.0 if available">
<if test="${net-3.0.installed}">
<call target="compile-net-3.0"/>
</if>
<if test="${not net-3.0.installed}">
<if test="${property::exists('project.build.package') and project.build.package}">
.NET 3.0 Build Skipped for Package
<fail message="The .NET Framework 3.0 is not available."/>
<echo message="The .NET Framework 3.0 is not available. Build skipped during package."/>
</if>
<if test="${not(property::exists('project.build.package') and project.build.package)}">
<echo message="The .NET Framework 3.0 is not available. Build skipped."/>
</if>
</if>
</target>
<!-- Targets for other .NET frameworks -->
@@ -377,6 +395,19 @@
<call target="compile-test" />
</target>
<target name="compile-net-3.0" description="Builds .NET Framework 3.0 version"
depends="set-net-3.0-runtime-configuration, check-spring-basedir, clean-current-bin-dir, TestInit">
<call target="copykeys" if="${project.build.sign}"/>
<call target="common.generate-assemblyinfo"/>
<property name="build-nms" value="false" />
<property name="build-ems" value="false" />
<property name="build-ems-tests" value="false" />
<property name="build-quartz" value="false" />
<property name="build-msmq" value="false" />
<property name="build-msmq-tests" value="false" />
<call target="compile-test" />
</target>
<target name="compile-mono-2.0" description="Builds MONO Framework 2.0 version"
depends="set-mono-2.0-runtime-configuration, check-spring-basedir, clean-current-bin-dir, TestInit">
<call target="copykeys" if="${project.build.sign}"/>
@@ -489,6 +520,25 @@
</if>
</target>
<target name="build-3.0">
<call target="set-build-namespaces-release"/>
<echo message="------------------------"/>
<echo message="Building .NET 3.0 DEBUG "/>
<echo message="------------------------"/>
<call target="set-debug-build-configuration"/>
<call target="compile-build-3.0"/>
<if test="${property::exists('project.build.package') and project.build.package}">
<echo message="--------------------------"/>
<echo message="Building .NET 3.0 RELEASE "/>
<echo message="--------------------------"/>
<call target="set-release-build-configuration"/>
<call target="compile-build-3.0"/>
</if>
</target>
<target name="build-mono-2.0">
<if test="${property::exists('project.build.package') and project.build.package}">
@@ -689,6 +739,7 @@
<call target="${nant.target.root.name}-1.0" />
<call target="${nant.target.root.name}-1.1" />
<call target="${nant.target.root.name}-2.0" />
<call target="${nant.target.root.name}-3.0" />
<!-- ignore Mono 2.0 for now -->
<!-- <call target="${nant.target.root.name}-mono-2.0" /> -->
@@ -915,6 +966,7 @@
<include name="**/Common.Logging.dll"/>
<include name="**/Common.Logging.*.dll"/>
<exclude name="**/3.0/**"/>
<exclude name="**/release/Spring/**"/>
<exclude name="**/debug/Spring/**"/>
<exclude name="**/examples/**"/>
@@ -924,6 +976,16 @@
</copy>
</if>
<if test="${net-3.0.installed}">
<copy todir="${current.package.dir}/bin/net">
<fileset basedir="./build/net">
<include name="**/Spring.Services.dll"/>
<include name="**/Spring.Services.xml"/>
<include name="**/Spring.Services.pdb"/>
</fileset>
</copy>
</if>
<if test="${property::exists('build.allnamespaces') and build.allnamespaces}">
<copy todir="${current.package.dir}/bin/net">
<fileset basedir="./build/net">