forked from NetTopologySuite/ProjNet4GeoAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TeamCity.targets
105 lines (96 loc) · 5.49 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
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<SolutionFile>ProjNet4GeoAPI.sln</SolutionFile>
<SolutionDir>$(MSBuildProjectDirectory)</SolutionDir>
<GeoAPIPackageVersion Condition=" '$(GeoAPIPackageVersion)' == '' ">1.7.4-pre3</GeoAPIPackageVersion>
<ProjNETVersion Condition=" '$(ProjNETVersion)' == '' ">1.3.2</ProjNETVersion>
<AsmFileVersion Condition=" '$(AsmFileVersion)' == '' ">$(ProjNETVersion)</AsmFileVersion>
<NuGetOutDir>"$(MSBuildProjectDirectory)\Release"</NuGetOutDir>
<NuGetVersion Condition=" '$(NuGetVersion)' == '' ">$(AsmFileVersion)</NuGetVersion>
<NuGetCommand Condition=" '$(NuGetCommand)' == '' ">"$(MSBuildProjectDirectory)\.nuget\nuget.exe"</NuGetCommand>
</PropertyGroup>
<Target Name="BuildRelease20">
<PropertyGroup>
<fwVersion>net20</fwVersion>
</PropertyGroup>
<Message Text="GeoAPI framework version: $(fwVersion)" />
<RemoveDir Directories="BaseIntermediateOutputPath=$(MSBuildProjectDirectory)\obj\v2.0" ContinueOnError="true"/>
<MSBuild Projects="$(SolutionFile)"
Targets="ProjNET"
Properties="fwVersion=$(fwVersion);Configuration=Release;TargetFrameworkVersion=v2.0;TargetFrameworkProfile=;DefineConstants=TRACE;NET20;BaseIntermediateOutputPath=$(MSBuildProjectDirectory)\obj\v2.0\"
RunEachTargetSeparately="true"
/>
<Message Text="GeoAPI framework version: $(fwVersion)" />
</Target>
<Target Name="BuildRelease35">
<PropertyGroup>
<fwVersion>net35-client</fwVersion>
</PropertyGroup>
<RemoveDir Directories="BaseIntermediateOutputPath=$(MSBuildProjectDirectory)\obj\v3.5" ContinueOnError="true"/>
<MSBuild Projects="$(SolutionFile)"
Targets="ProjNET"
Properties="fwVersion=$(fwVersion);Configuration=Release;TargetFrameworkVersion=v3.5;TargetFrameworkProfile=Client;DefineConstants=TRACE;NET20;NET35;BaseIntermediateOutputPath=$(MSBuildProjectDirectory)\obj\v3.5\"
RunEachTargetSeparately="true"
/>
</Target>
<Target Name="BuildRelease40">
<PropertyGroup>
<fwVersion>net40-client</fwVersion>
</PropertyGroup>
<RemoveDir Directories="BaseIntermediateOutputPath=$(MSBuildProjectDirectory)\obj\v4.0" ContinueOnError="true"/>
<MSBuild Projects="$(SolutionFile)"
Targets="ProjNET"
Properties="fwVersion=$(fwVersion);Configuration=Release;TargetFrameworkVersion=v4.0;TargetFrameworkProfile=Client;DefineConstants=TRACE;NET20;NET35;NET40;BaseIntermediateOutputPath=$(MSBuildProjectDirectory)\obj\v4.0\"
RunEachTargetSeparately="true"
/>
</Target>
<Target Name="BuildRelease403">
<PropertyGroup>
<fwVersion>net403-client</fwVersion>
</PropertyGroup>
<RemoveDir Directories="BaseIntermediateOutputPath=$(MSBuildProjectDirectory)\obj\v4.0.3" ContinueOnError="true"/>
<MSBuild Projects="$(SolutionFile)"
Targets="ProjNET"
Properties="fwVersion=$(fwVersion);Configuration=Release;TargetFrameworkVersion=v4.0.3;TargetFrameworkProfile=Client;DefineConstants=TRACE;NET20;NET35;NET40;BaseIntermediateOutputPath=$(MSBuildProjectDirectory)\obj\v4.0.3\"
RunEachTargetSeparately="true"
/>
</Target>
<Target Name="BuildRelease45">
<PropertyGroup>
<fwVersion>net45</fwVersion>
</PropertyGroup>
<RemoveDir Directories="BaseIntermediateOutputPath=$(MSBuildProjectDirectory)\obj\v4.5" ContinueOnError="true"/>
<MSBuild Projects="$(SolutionFile)"
Targets="ProjNET"
Properties="fwVersion=$(fwVersion);Configuration=Release;TargetFrameworkVersion=v4.5;TargetFrameworkProfile=;DefineConstants=TRACE;NET20;NET35;NET40;BaseIntermediateOutputPath=$(MSBuildProjectDirectory)\obj\v4.5\"
RunEachTargetSeparately="true"
/>
</Target>
<Target Name="BuildReleasePCL">
<PropertyGroup>
<fwVersion>portable-net403+sl5+netcore45+wpa81+wp8+MonoAndroid10+XamariniOS10+MonoTouch10</fwVersion>
</PropertyGroup>
<RemoveDir Directories="BaseIntermediateOutputPath=$(MSBuildProjectDirectory)\obj\PCL" ContinueOnError="true"/>
<MSBuild Projects="$(SolutionFile)"
Targets="ProjNET_Pcl"
Properties="fwVersion=$(fwVersion);Configuration=Release;TargetFrameworkVersion=v4.0;TargetFrameworkProfile=Profile336;DefineConstants=TRACE;PCL;BaseIntermediateOutputPath=$(MSBuildProjectDirectory)\obj\PCL\"
RunEachTargetSeparately="true"
/>
</Target>
<!-- build only for now, test on build server -->
<Target Name="UnitTests" DependsOnTargets="BuildRelease">
<MSBuild Projects="$(SolutionFile)"
Targets="ProjNET_Tests"
Properties="Configuration=Release;TargetFrameworkVersion=v4.0;TargetFrameworkProfile=Client;DefineConstants=TRACE;UseCoordinateBufferPublicly;NET20;NET35;NET40;BaseIntermediateOutputPath=$(MSBuildProjectDirectory)\obj\v4.0\"
/>
</Target>
<Target Name="BuildRelease" DependsOnTargets="BuildRelease20;BuildRelease35;BuildRelease40;BuildRelease403;BuildRelease45;BuildReleasePCL"/>
<Target Name="NuGetPack" DependsOnTargets="BuildRelease">
<Exec Command="$(NuGetCommand) update -self"/>
<Exec Command="$(NuGetCommand) pack ProjNET.nuspec -Version $(NuGetVersion) -outputdirectory $(NuGetOutDir) -symbols"/>
</Target>
<!--
TODO: add targets here to build zip, NuGet, ...
-->
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets"/>
</Project>