forked from ninject/Ninject.MockingKernel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Ninject.MockingKernel.RhinoMocks.build
48 lines (44 loc) · 2.49 KB
/
Ninject.MockingKernel.RhinoMocks.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
<?xml version="1.0" encoding="utf-8"?>
<project name="Ninject" default="build">
<target name="buildRhinoMocks" unless="${string::contains(build.platform, 'silverlight') or string::contains(build.platform, 'mono')}">
<property name="product.assembly.rhinomock" value="${product.name}.RhinoMock.dll" overwrite="false"/>
<property name="product.docfile.rhinomock" value="${product.name}.RhinoMock.xml" overwrite="false"/>
<copy todir="${current.path.build}/lib">
<fileset basedir="${path.packages}">
<include name="RhinoMocks.*/lib/net/**/*.dll"/>
<include name="RhinoMocks.*/lib/net/**/*.xml"/>
</fileset>
</copy>
<csc noconfig="true" nostdlib="true" warnaserror="true" target="library" debug="${build.debug}" optimize="${build.optimize}" define="${build.defines}"
output="${current.path.build}/${product.assembly.rhinomock}" doc="${current.path.build}/${product.docfile.rhinomock}" keyfile="${path.src}/${product.keyfile}">
<arg line="/filealign:512"/>
<sources basedir="${path.src}">
<include name="${build.asminfo}"/>
<include name="${product.name}.RhinoMock/**/*.cs"/>
</sources>
<references>
<include name="mscorlib.dll"/>
<include name="System.dll"/>
<include name="System.Core.dll"/>
<include name="${current.path.build}/${product.assembly}"/>
<include name="${path.lib}/Ninject/${build.platform}/Ninject.dll"/>
<include name="${path.packages}/RhinoMocks.*/lib/net/Rhino.Mocks.dll"/>
</references>
</csc>
</target>
<target name="nuget-RhinoMocks">
<property name="nuget.sourcedir" value="${path.base}/nuget-rhinoMocks" />
<property name="nuget.basedir" value="${path.base}/build/nuget-rhinoMocks" />
<property name="nuget.platforms" value="net-3.5,net-4.0,net-4.5,netcf-3.5" />
<property name="nuget.name" value="${product.name}.RhinoMock" />
<property name="nuget.releaseDirectory" value="${path.build}\${build.platform}\release" dynamic="true"/>
<property name="nuget.dependencies" value="Ninject.MockingKernel" />
<property name="nuget.additionalFiles" value="-" />
<property name="nuget.packageName" value="${product.name}.RhinoMocks${product.packagePostfix}" />
<property name="nuget.symbol.basedir" value="${path.base}/build/nuget-rhinoMocks_symbol" />
<property name="nuget.project" value="${path.src}/${product.name}.RhinoMock/${product.name}.RhinoMocks.csproj" />
<property name="nant.settings.currentframework" value="net-4.0"/>
<msbuild project="${nuget.project}" />
<call target="nuget-run"/>
</target>
</project>