-
Notifications
You must be signed in to change notification settings - Fork 0
/
NetTopologySuite.Common.props
111 lines (87 loc) · 5.39 KB
/
NetTopologySuite.Common.props
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
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<MSBuildAllProjects Condition=" '$(MSBuildVersion)' == '' Or '$(MSBuildVersion)' < '16.0' ">$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
<OutputPath>$(MSBuildThisFileDirectory)$(Configuration)\$(Platform)</OutputPath>
<DocumentationFile>$(OutputPath)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
<RestoreAdditionalProjectSources>$(RestoreAdditionalProjectSources);https://www.myget.org/F/nettopologysuite/api/v3/index.json</RestoreAdditionalProjectSources>
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)nts.snk</AssemblyOriginatorKeyFile>
<Deterministic>true</Deterministic>
<NtsOfficialRelease>false</NtsOfficialRelease>
</PropertyGroup>
<!-- Travis-CI -->
<PropertyGroup Condition=" '$(TRAVIS)' == 'True' ">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
<NtsBuildMetadata Condition=" '$(NtsBuildMetadata)' == '' ">ci.travis.$(TRAVIS_BUILD_NUMBER)</NtsBuildMetadata>
<NtsOfficialRelease Condition=" '$(TRAVIS_BRANCH)' == 'master' And '$(TRAVIS_PULL_REQUEST)' == 'false' ">true</NtsOfficialRelease>
</PropertyGroup>
<!-- TeamCity -->
<PropertyGroup Condition=" '$(TEAMCITY_VERSION)' != '' ">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
<NtsBuildMetadata Condition=" '$(NtsBuildMetadata)' == '' ">ci.teamcity.$(BUILD_NUMBER)</NtsBuildMetadata>
</PropertyGroup>
<!-- AppVeyor -->
<PropertyGroup Condition=" '$(APPVEYOR)' == 'True' ">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
<NtsBuildMetadata Condition=" '$(NtsBuildMetadata)' == '' ">ci.appveyor.$(APPVEYOR_BUILD_NUMBER)</NtsBuildMetadata>
</PropertyGroup>
<!-- Fallback for local builds and CI environments we don't recognize -->
<PropertyGroup>
<NtsBuildMetadata Condition=" '$(NtsBuildMetadata)' == '' ">local</NtsBuildMetadata>
</PropertyGroup>
<PropertyGroup Label="Version numbers">
<!-- The highest released version of JTS that we intend our behavior to be compatible with. -->
<JTSCompatibilityLevel>1.16.1</JTSCompatibilityLevel>
<!-- MAJOR, MINOR, and PATCH are defined according to SemVer 2.0.0. -->
<NtsMajorVersion>2</NtsMajorVersion>
<NtsMinorVersion>0</NtsMinorVersion>
<NtsPatchVersion>1</NtsPatchVersion>
<NtsBuildTimestamp>$([System.DateTime]::UtcNow.Ticks)</NtsBuildTimestamp>
<NtsDaysSinceEpoch>$([System.DateTime]::op_Subtraction($([System.DateTime]::new($(NtsBuildTimestamp)).Date),$([System.DateTime]::new(621355968000000000))).TotalDays.ToString("00000"))</NtsDaysSinceEpoch>
<!--
Note that, since this causes our version number to tick over every
minute, we see a (far less severe) variant of dotnet/project-system#1457
where VS decides to restore packages at seemingly random times.
-->
<NtsMinutesSinceStartOfUtcDay>$([System.DateTime]::new($(NtsBuildTimestamp)).TimeOfDay.TotalMinutes.ToString("0000"))</NtsMinutesSinceStartOfUtcDay>
<VersionPrefix>$(NtsMajorVersion).$(NtsMinorVersion).$(NtsPatchVersion)</VersionPrefix>
<VersionSuffix Condition=" '$(VersionSuffix)' == '' And '$(NtsOfficialRelease)' != 'true' ">pre.$(NtsDaysSinceEpoch)$(NtsMinutesSinceStartOfUtcDay)+$(NtsBuildMetadata)</VersionSuffix>
<!--
A sample of what this could have been on 2019-05-13 at 11:00:00 PM UTC:
NtsBuildTimestamp = 636933024000000000
NtsMajorVersion = 2
NtsMinorVersion = 0
NtsPatchVersion = 0
VersionPrefix = 2.0.0
NtsDaysSinceEpoch = 18029
NtsMinutesSinceStartOfUtcDay = 1380
NtsBuildMetadata = local
VersionSuffix = pre.180291380+local
(ultimate) package version = 2.0.0-pre.180291380+local
-->
</PropertyGroup>
<PropertyGroup Label="Assembly Info">
<!-- See https://docs.microsoft.com/en-us/dotnet/standard/library-guidance/versioning -->
<AssemblyVersion>$(NtsMajorVersion).0.0.0</AssemblyVersion>
<AssemblyFileVersion>$(NtsMajorVersion).$(NtsMinorVersion).$(NtsPatchVersion).$(NtsBuildNumber)</AssemblyFileVersion>
<InformationalVersion>$(NtsMajorVersion).$(NtsMinorVersion).$(NtsPatchVersion) (compatible with JTS $(JTSCompatibilityLevel))</InformationalVersion>
<Company>NetTopologySuite Team</Company>
<CopyrightPeople>$(Company)</CopyrightPeople>
<CopyrightPeople>$(CopyrightPeople), Diego Guidi</CopyrightPeople>
<CopyrightPeople>$(CopyrightPeople), John Diss (www.newgrove.com)</CopyrightPeople>
<CopyrightPeople>$(CopyrightPeople), Felix Obermaier (www.ivv-aachen.de)</CopyrightPeople>
<CopyrightPeople>$(CopyrightPeople), Todd Jackson</CopyrightPeople>
<CopyrightPeople>$(CopyrightPeople), Joe Amenta</CopyrightPeople>
<Copyright>Copyright © 2006 - $([System.DateTime]::UtcNow.Year) $(CopyrightPeople)</Copyright>
</PropertyGroup>
<PropertyGroup Label="SourceLink Info">
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<ItemGroup>
<!-- SourceLink adds stuff to let debuggers step into our code. -->
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-18618-05" PrivateAssets="All" />
</ItemGroup>
</Project>