-
Notifications
You must be signed in to change notification settings - Fork 48
/
Ninject.Web.WebApi.build
124 lines (113 loc) · 6.83 KB
/
Ninject.Web.WebApi.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<?xml version="1.0" encoding="utf-8"?>
<project name="Ninject" default="build">
<property name="version" value="3.0.0.0" overwrite="true"/>
<property name="product.name" value="Ninject.Web.WebApi" overwrite="false"/>
<property name="product.company" value="Ninject Project Contributors" overwrite="false"/>
<property name="product.duration" value="2012" overwrite="false"/>
<property name="product.description" value="Ninject support for MVC Web API" overwrite="false"/>
<property name="product.platforms" value="net-4.0,net-4.5" overwrite="false"/>
<property name="product.buildserverPlatforms" value="net-4.0" overwrite="false"/>
<property name="product.packagePostfix" value="" overwrite="false"/>
<property name="dependencies" value="Ninject,Ninject.Web.Common,Ninject.Extensions.NamedScope,Ninject.Extensions.ContextPreservation" overwrite="false"/>
<include buildfile="Ninject.include" />
<target name="all" depends="core selfhost"/>
<target name="nuget-all" depends="nuget-webapi nuget-selfhost nuget-webhost"/>
<target name="core" depends="init">
<csc noconfig="true" warnaserror="true" target="library" debug="${build.debug}" optimize="${build.optimize}" define="${build.defines}" output="${current.path.build}/${product.assembly}" doc="${current.path.build}/${product.docfile}" keyfile="${path.src}/${product.keyfile}">
<arg line="/filealign:512" unless="${nant.settings.currentframework == 'mono-2.0'}"/>
<sources basedir="${path.src}">
<include name="${build.asminfo}"/>
<include name="${product.name}/**/*.cs"/>
</sources>
<references>
<include name="mscorlib.dll"/>
<include name="System.dll"/>
<include name="System.Core.dll"/>
<include name="System.Web.dll"/>
<include name="System.Web.Abstractions.dll"/>
<include name="System.Web.Routing.dll"/>
<include name="System.ComponentModel.DataAnnotations.dll"/>
<include name="${path.lib}/WebApi/System.Net.Http.dll"/>
<include name="${path.lib}/WebApi/System.Web.Http.dll"/>
<include name="${path.lib}/WebApi/System.Web.Http.Common.dll"/>
<include name="${path.lib}/WebApi/System.Web.Http.WebHost.dll"/>
<include name="${path.lib}/Ninject/${build.platform}/Ninject.dll"/>
<include name="${path.lib}/Ninject.Web.Common/${build.platform}/Ninject.Web.Common.dll"/>
</references>
</csc>
</target>
<target name="selfhost" depends="core">
<property name="current.path.build.extensions" value="${path.build}/${build.platform}/${build.config}/extensions"/>
<mkdir dir="${current.path.build.extensions}" if="${not(directory::exists(current.path.build.extensions))}"/>
<csc noconfig="true" warnaserror="true" target="library" debug="${build.debug}" optimize="${build.optimize}" define="${build.defines}"
output="${current.path.build}/${product.name}.SelfHost.dll" doc="${current.path.build}/${product.name}.SelfHost.xml" keyfile="${path.src}/${product.keyfile}">
<arg line="/filealign:512" unless="${nant.settings.currentframework == 'mono-2.0'}"/>
<sources basedir="${path.src}">
<include name="${build.asminfo}"/>
<include name="${product.name}.Selfhost/**/*.cs"/>
</sources>
<references basedir="${current.path.build}">
<include name="mscorlib.dll"/>
<include name="System.dll"/>
<include name="System.Core.dll"/>
<include name="System.Web.dll"/>
<include name="System.Web.Abstractions.dll"/>
<include name="System.Web.Routing.dll"/>
<include name="System.ComponentModel.DataAnnotations.dll"/>
<include name="${path.lib}/WebApi/System.Net.Http.dll"/>
<include name="${path.lib}/WebApi/System.Web.Http.dll"/>
<include name="${path.lib}/WebApi/System.Web.Http.Common.dll"/>
<include name="${path.lib}/WebApi/System.Web.Http.SelfHost.dll"/>
<include name="${path.lib}/Ninject/${build.platform}/Ninject.dll"/>
<include name="${path.lib}/Ninject.Web.Common/${build.platform}/Ninject.Web.Common.dll"/>
<include name="${path.lib}/Ninject.Web.Common/${build.platform}/Ninject.Web.Common.SelfHost.dll"/>
<include name="${path.lib}/Ninject.Extensions.ContextPreservation/${build.platform}/Ninject.Extensions.ContextPreservation.dll"/>
<include name="${path.lib}/Ninject.Extensions.NamedScope/${build.platform}/Ninject.Extensions.NamedScope.dll"/>
<include name="${current.path.build}/${product.assembly}"/>
</references>
</csc>
</target>
<target name="compile-tests"/>
<target name="compile-silverlight-tests"/>
<target name="nuget-webapi">
<property name="nuget.sourcedir" value="${path.base}/nuget" />
<property name="nuget.basedir" value="${path.base}/build/nuget" />
<property name="nuget.symbol.basedir" value="${path.base}/build/nuget_symbol" />
<property name="nuget.platforms" value="${product.platforms}" />
<property name="nuget.name" value="${product.name}" />
<property name="nuget.project" value="${path.src}/${product.name}/${product.name}.csproj" />
<property name="nuget.releaseDirectory" value="${path.build}\${build.platform}\release" dynamic="true"/>
<property name="nuget.dependencies" value="${dependencies}" />
<property name="nuget.additionalFiles" value="-" />
<property name="nuget.packageName" value="Ninject.Web.WebApi" />
<call target="nuget-run"/>
</target>
<target name="nuget-selfhost">
<property name="nuget.sourcedir" value="${path.base}/nuget-selfhost" />
<property name="nuget.basedir" value="${path.base}/build/nuget-selfhost" />
<property name="nuget.platforms" value="${product.platforms}" />
<property name="nuget.name" value="${product.name}.Selfhost" />
<property name="nuget.releaseDirectory" value="${path.build}\${build.platform}\release\Selfhost" dynamic="true"/>
<property name="nuget.dependencies" value="${product.name}" />
<property name="nuget.additionalFiles" value="-" />
<property name="nuget.packageName" value="${nuget.name}${product.packagePostfix}" />
<property name="nuget.symbol.basedir" value="${path.base}/build/nuget-selfhost_symbol" />
<property name="nuget.project" value="${path.src}/${product.name}.Selfhost/${product.name}.Selfhost.csproj" />
<property name="nant.settings.currentframework" value="net-4.0"/>
<msbuild project="${nuget.project}" />
<call target="nuget-run"/>
</target>
<target name="nuget-webhost">
<property name="nuget.sourcedir" value="${path.base}/nuget-webhost" />
<property name="nuget.basedir" value="${path.base}/build/nuget-webhost" />
<property name="nuget.platforms" value="" />
<property name="nuget.name" value="${product.name}.WebHost" />
<property name="nuget.dependencies" value="${product.name}" />
<property name="nuget.additionalFiles" value="-" />
<property name="nuget.packageName" value="${nuget.name}${product.packagePostfix}" />
<property name="nuget.symbol.basedir" value="" />
<property name="nuget.project" value="" />
<property name="nant.settings.currentframework" value="net-4.0"/>
<call target="nuget-run"/>
</target>
</project>