forked from NetTopologySuite/NetTopologySuite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TeamCity.targets
157 lines (146 loc) · 10.3 KB
/
TeamCity.targets
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<SolutionFile>NetTopologySuite.sln</SolutionFile>
<SolutionDir>$(MSBuildProjectDirectory)</SolutionDir>
<AsmVersion>1.13.3</AsmVersion>
<AsmFileVersion Condition=" '$(AsmFileVersion)' == '' ">$(AsmVersion)</AsmFileVersion>
<NuGetOutDir>"$(MSBuildProjectDirectory)\Release"</NuGetOutDir>
<NuGetVersion Condition=" '$(NuGetVersion)' == '' ">$(AsmFileVersion)</NuGetVersion>
<NuGetCommand Condition=" '$(NuGetCommand)' == '' ">"$(MSBuildProjectDirectory)\.nuget\nuget.exe"</NuGetCommand>
</PropertyGroup>
<Target Name="Clean">
<RemoveDir Directories="$(MSBuildProjectDirectory)\bin"/>
<RemoveDir Directories="$(MSBuildProjectDirectory)\obj"/>
</Target>
<Target Name="CleanDebug" DependsOnTargets="Clean">
<MSBuild Projects="$(SolutionFile)" Targets="Clean" Properties="Configuration=Debug" />
<RemoveDir Directories="$(MSBuildProjectDirectory)\Debug"/>
</Target>
<Target Name="CleanRelease" DependsOnTargets="Clean">
<MSBuild Projects="$(SolutionFile)" Targets="Clean" Properties="Configuration=Release" />
<RemoveDir Directories="$(MSBuildProjectDirectory)\bin"/>
<RemoveDir Directories="$(MSBuildProjectDirectory)\obj"/>
<RemoveDir Directories="$(MSBuildProjectDirectory)\Release"/>
</Target>
<Target Name="BuildDebug">
<MSBuild Projects="$(SolutionFile)" Targets="NetTopologySuite" Properties="Configuration=Debug" />
</Target>
<Target Name="Information">
<Message Text ="
Hello World!
Working in $(MSBuildProjectDirectory)
"/>
</Target>
<Target Name="SetVersion" DependsOnTargets="Information">
<ItemGroup>
<AssemblyAttributes Include="AssemblyVersion">
<_Parameter1>$(AsmVersion)</_Parameter1>
</AssemblyAttributes>
<AssemblyAttributes Include="AssemblyFileVersion">
<_Parameter1>$(AsmFileVersion)</_Parameter1>
</AssemblyAttributes>
</ItemGroup>
<WriteCodeFragment Language="C#" OutputFile="SharedAssemblyVersion.cs" AssemblyAttributes="@(AssemblyAttributes)" />
</Target>
<Target Name="BuildRelease20">
<PropertyGroup>
<fwVersion>net20</fwVersion>
</PropertyGroup>
<RemoveDir Directories="$(MSBuildProjectDirectory)\obj\v2.0" ContinueOnError="true"/>
<MSBuild Projects="$(SolutionFile)"
Targets="PowerCollections;NetTopologySuite;NetTopologySuite_IO\NetTopologySuite_IO_GeoJSON;NetTopologySuite_IO\NetTopologySuite_IO_ShapeFile;NetTopologySuite_IO\NetTopologySuite_IO_GDB;NetTopologySuite_IO\NetTopologySuite_IO_GeoTools;NetTopologySuite_IO\NetTopologySuite_IO_MsSqlSpatial;NetTopologySuite_IO\NetTopologySuite_IO_PostGis;NetTopologySuite_IO\NetTopologySuite_IO_SpatiaLite;NetTopologySuite_IO\NetTopologySuite_IO_SqlServer2008"
Properties="fwVersion=$(fwVersion);Configuration=Release;TargetFrameworkVersion=v2.0;TargetFrameworkProfile=;DefineConstants=TRACE;NET20;BaseIntermediateOutputPath=$(MSBuildProjectDirectory)\obj\v2.0\;"
RunEachTargetSeparately="true"
ContinueOnError="true"
/>
</Target>
<Target Name="BuildRelease35">
<PropertyGroup>
<fwVersion>net35-client</fwVersion>
</PropertyGroup>
<RemoveDir Directories="$(MSBuildProjectDirectory)\obj\v3.5" ContinueOnError="true"/>
<MSBuild Projects="$(SolutionFile)"
Targets="PowerCollections;NetTopologySuite;NetTopologySuite_IO\NetTopologySuite_IO_GeoJSON;NetTopologySuite_IO\NetTopologySuite_IO_ShapeFile;NetTopologySuite_IO\NetTopologySuite_IO_GDB;NetTopologySuite_IO\NetTopologySuite_IO_GeoTools;NetTopologySuite_IO\NetTopologySuite_IO_MsSqlSpatial;NetTopologySuite_IO\NetTopologySuite_IO_PostGis;NetTopologySuite_IO\NetTopologySuite_IO_SpatiaLite;NetTopologySuite_IO\NetTopologySuite_IO_SqlServer2008"
Properties="fwVersion=$(fwVersion);Configuration=Release;TargetFrameworkVersion=v3.5;TargetFrameworkProfile=Client;DefineConstants=TRACE;NET20;NET35;BaseIntermediateOutputPath=$(MSBuildProjectDirectory)\obj\v3.5\;"
RunEachTargetSeparately="true"
ContinueOnError="true" />
</Target>
<Target Name="BuildRelease40">
<PropertyGroup>
<fwVersion>net40-client</fwVersion>
</PropertyGroup>
<RemoveDir Directories="$(MSBuildProjectDirectory)\obj\v4.0" ContinueOnError="true"/>
<MSBuild Projects="$(SolutionFile)"
Targets="PowerCollections;NetTopologySuite;NetTopologySuite_IO\NetTopologySuite_IO_GeoJSON;NetTopologySuite_IO\NetTopologySuite_IO_ShapeFile;NetTopologySuite_IO\NetTopologySuite_IO_ShapeFile_Extended;NetTopologySuite_IO\NetTopologySuite_IO_GDB;NetTopologySuite_IO\NetTopologySuite_IO_GeoTools;NetTopologySuite_IO\NetTopologySuite_IO_MsSqlSpatial;NetTopologySuite_IO\NetTopologySuite_IO_PostGis;NetTopologySuite_IO\NetTopologySuite_IO_SpatiaLite;NetTopologySuite_IO\NetTopologySuite_IO_SqlServer2008"
Properties="fwVersion=$(fwVersion);Configuration=Release;TargetFrameworkVersion=v4.0;TargetFrameworkProfile=Client;DefineConstants=TRACE;NET20;NET35;NET40;BaseIntermediateOutputPath=$(MSBuildProjectDirectory)\obj\v4.0\;"
RunEachTargetSeparately="true"
ContinueOnError="true"
/>
</Target>
<Target Name="BuildRelease403">
<PropertyGroup>
<fwVersion>net403-client</fwVersion>
</PropertyGroup>
<RemoveDir Directories="$(MSBuildProjectDirectory)\obj\v4.0.3" ContinueOnError="true"/>
<MSBuild Projects="$(SolutionFile)"
Targets="PowerCollections;NetTopologySuite;NetTopologySuite_IO\NetTopologySuite_IO_GeoJSON;NetTopologySuite_IO\NetTopologySuite_IO_ShapeFile;NetTopologySuite_IO\NetTopologySuite_IO_ShapeFile_Extended;NetTopologySuite_IO\NetTopologySuite_IO_GDB;NetTopologySuite_IO\NetTopologySuite_IO_GeoTools;NetTopologySuite_IO\NetTopologySuite_IO_MsSqlSpatial;NetTopologySuite_IO\NetTopologySuite_IO_PostGis;NetTopologySuite_IO\NetTopologySuite_IO_SpatiaLite;NetTopologySuite_IO\NetTopologySuite_IO_SqlServer2008"
Properties="fwVersion=$(fwVersion);Configuration=Release;TargetFrameworkVersion=v4.0.3;TargetFrameworkProfile=Client;DefineConstants=TRACE;NET20;NET35;NET40;BaseIntermediateOutputPath=$(MSBuildProjectDirectory)\obj\v4.0.3\;"
RunEachTargetSeparately="true"
ContinueOnError="true"
/>
</Target>
<Target Name="BuildRelease45">
<PropertyGroup>
<fwVersion>net45</fwVersion>
</PropertyGroup>
<RemoveDir Directories="$(MSBuildProjectDirectory)\obj\v4.5" ContinueOnError="true"/>
<MSBuild Projects="$(SolutionFile)"
Targets="PowerCollections;NetTopologySuite;NetTopologySuite_IO\NetTopologySuite_IO_GeoJSON;NetTopologySuite_IO\NetTopologySuite_IO_ShapeFile;NetTopologySuite_IO\NetTopologySuite_IO_ShapeFile_Extended;NetTopologySuite_IO\NetTopologySuite_IO_GDB;NetTopologySuite_IO\NetTopologySuite_IO_GeoTools;NetTopologySuite_IO\NetTopologySuite_IO_MsSqlSpatial;NetTopologySuite_IO\NetTopologySuite_IO_PostGis;NetTopologySuite_IO\NetTopologySuite_IO_SpatiaLite;NetTopologySuite_IO\NetTopologySuite_IO_SqlServer2008"
Properties="fwVersion=$(fwVersion);Configuration=Release;TargetFrameworkVersion=v4.5;TargetFrameworkProfile=;DefineConstants=TRACE;NET20;NET35;NET40;BaseIntermediateOutputPath=$(MSBuildProjectDirectory)\obj\v4.5\"
RunEachTargetSeparately="true"
ContinueOnError="true"
/>
</Target>
<Target Name="BuildReleasePCL">
<RemoveDir Directories="$(MSBuildProjectDirectory)\obj\PCL" ContinueOnError="true"/>
<MSBuild Projects="$(SolutionFile)"
Targets="PCL\PowerCollections_PCL;PCL\NetTopologySuite_PCL;PCL\GeoAPI_Bootstrapper_NetTopologySuite;PCL\NetTopologySuite_IO_SpatiaLite_Pcl;PCL\NetTopologySuite_IO_GeoJSON_Pcl"
Properties="Configuration=Release;TargetFrameworkVersion=v4.0;TargetFrameworkProfile=Profile147;DefineConstants=TRACE;PCL;BaseIntermediateOutputPath=$(MSBuildProjectDirectory)\obj\PCL\"
RunEachTargetSeparately="true"
ContinueOnError="true"
/>
</Target>
<Target Name="BuildSolution" DependsOnTargets="CleanRelease;Information">
<MSBuild Projects="$(SolutionFile)"
Properties="Configuration=Release;"
RunEachTargetSeparately="true"
ContinueOnError="true"
/>
</Target>
<Target Name="RebuildRelease" DependsOnTargets="CleanRelease;BuildRelease20;BuildRelease35;BuildRelease40;BuildRelease403;BuildRelease45"/>
<!-- build only for now, test on build server -->
<Target Name="UnitTests" DependsOnTargets="CleanRelease;BuildRelease40">
<MSBuild Projects="$(SolutionFile)"
Targets="NetTopologySuite_IO\NetTopologySuite_IO;NetTopologySuite_Tests\NetTopologySuite_Tests_NUnit;NetTopologySuite_Tests\NetTopologySuite_IO_Tests;NetTopologySuite_Tests\NetTopologySuite_Samples_Console;"
Properties="Configuration=Release;TargetFrameworkVersion=v4.0;TargetFrameworkProfile=Client;DefineConstants=TRACE;UseCoordinateBufferPublicly;NET20;NET35;NET40;"
/>
</Target>
<Target Name="UnitTestsPCL" DependsOnTargets="CleanRelease;BuildReleasePCL">
<MSBuild Projects="$(SolutionFile)"
Targets="NetTopologySuite_Tests\PCL\NetTopologySuite_Tests_NUnit_PCL;"
Properties="Configuration=Release;TargetFrameworkVersion=v4.0;TargetFrameworkProfile=Profile147;DefineConstants=TRACE;PCL;UseCoordinateBufferPublicly;"
/>
</Target>
<Target Name="NuGetPack" DependsOnTargets="RebuildRelease;BuildReleasePCL">
<Exec Command="$(NuGetCommand) update -self"/>
<Exec Command="$(NuGetCommand) pack NTS.nuspec -Version $(NuGetVersion) -outputdirectory $(NuGetOutDir) -symbols"/>
<Exec Command="$(NuGetCommand) pack NTS.IO.nuspec -Version $(NuGetVersion) -outputdirectory $(NuGetOutDir) -symbols"/>
<Exec Command="$(NuGetCommand) pack NTS.IO.SpatiaLite.nuspec -Version $(NuGetVersion) -outputdirectory $(NuGetOutDir) -symbols"/>
<Exec Command="$(NuGetCommand) pack NTS.IO.SqlServer.nuspec -Version $(NuGetVersion) -outputdirectory $(NuGetOutDir) -symbols"/>
<Exec Command="$(NuGetCommand) pack NTS.IO.GeoJSON.nuspec -Version $(NuGetVersion) -outputdirectory $(NuGetOutDir) -symbols"/>
</Target>
<!--
TODO: add targets here to build zip, NuGet, ...
-->
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets"/>
</Project>