-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMMDB.DataService.build
103 lines (91 loc) · 3.61 KB
/
MMDB.DataService.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
<?xml version="1.0"?>
<project name="MMDBDataService" default="BuildSolution" xmlns="http://nant.sf.net/release/0.86-beta1/nant.xsd">
<description />
<property name="BuildDirectory" value="${directory::get-current-directory()}" />
<property name="MSBuildPath" value="C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\msbuild.exe"/>
<!--<property name="ReleaseDirectory" value="C:\Users\admin\Dropbox\MMDBDataService\DataService"/>-->
<property name="BuildLabel" value="${environment::get-variable('BUILD_NUMBER')}"/>
<target name="PrepareSolution" description="Prepare Solution">
<echo message="Updating Version Numbers"/>
<asminfo output="MMDB.DataService.Data\Properties\VersionInfo.cs" language="CSharp">
<imports>
<import namespace="System.Reflection" />
</imports>
<attributes>
<attribute type="AssemblyVersion" value=""${BuildLabel}"" asis="true"/>
<attribute type="AssemblyFileVersion" value=""${BuildLabel}"" asis="true"/>
</attributes>
</asminfo>
<asminfo output="MMDB.DataService.Web\Properties\VersionInfo.cs" language="CSharp">
<imports>
<import namespace="System.Reflection" />
</imports>
<attributes>
<attribute type="AssemblyVersion" value=""${BuildLabel}"" asis="true"/>
<attribute type="AssemblyFileVersion" value=""${BuildLabel}"" asis="true"/>
</attributes>
</asminfo>
<asminfo output="MMDB.DataService.WindowsService\Properties\VersionInfo.cs" language="CSharp">
<imports>
<import namespace="System.Reflection" />
</imports>
<attributes>
<attribute type="AssemblyVersion" value=""${BuildLabel}"" asis="true"/>
<attribute type="AssemblyFileVersion" value=""${BuildLabel}"" asis="true"/>
</attributes>
</asminfo>
</target>
<!--
<target name="PublishSolution" description="PublishSolution">
<echo message="Publish DropkicK"/>
<copy todir="${ReleaseDirectory}\${BuildLabel}\DropkicK">
<fileset basedir="${BuildDirectory}\packages\dropkick.core.0.4.13.0\tools\dropkick">
<include name="**/*"/>
</fileset>
</copy>
<echo message="Publish Database Scripts"/>
<copy todir="${ReleaseDirectory}\${BuildLabel}\Database">
<fileset basedir="${BuildDirectory}\Database">
<include name="**/*"/>
</fileset>
</copy>
<echo message="Publish Deployment Project"/>
<copy todir="${ReleaseDirectory}\${BuildLabel}\Deployment">
<fileset basedir="${BuildDirectory}\MMDB.DataService.Deployment\bin\Release">
<include name="**/*"/>
</fileset>
</copy>
<echo message="Publish Deployment Scripts"/>
<copy todir="${ReleaseDirectory}\${BuildLabel}">
<fileset basedir="${BuildDirectory}\DeployScripts">
<include name="**/*"/>
</fileset>
</copy>
<echo message="Public Environment Configs"/>
<copy todir="${ReleaseDirectory}\${BuildLabel}\Configs">
<fileset basedir="${BuildDirectory}\Configs">
<include name="**/*"/>
</fileset>
</copy>
<echo message="Publishing Windows Service Files"/>
<copy todir="${ReleaseDirectory}\${BuildLabel}\WindowsService">
<fileset basedir="${BuildDirectory}\MMDB.DataService.WindowsService\bin\Release">
<include name="**/*"/>
</fileset>
</copy>
<echo message="Publish Website"/>
<copy todir="${ReleaseDirectory}\${BuildLabel}\Website">
<fileset basedir="${BuildDirectory}\MMDB.DataService.Web\bin\Release">
<include name="**/*.config"/>
<include name="**/*.asax"/>
<include name="**/*.cshtml"/>
<include name="**/*.js"/>
<include name="**/*.gif"/>
<include name="**/*.png"/>
<include name="**/*.jpg"/>
<include name="**/*.bin"/>
</fileset>
</copy>
</target>
-->
</project>