Skip to content

Commit 957c7f7

Browse files
jnyrupmatt-lethargic
authored andcommitted
Consolidate nuspec into csproj (#135)
Most information from nuspec can be specified in the csproj. This has the benefit that all information is located in a single place and that previously duplicated information can no longer be out of sync. Currently release notes and package dependencies are out of sync. I've added the following: * Xavier Fischer as Author. * Referred MIT license directly instead of throught `LICENSE.MD` * link to github project page * link to git repository csproj does not support the concepts of `<owners>` and `<language>` so I've left them out. The following tags are automatically inferred: * `<id>` from project name * `requireLicenseAcceptance` defaults to `false` * `AssemblyVersion` is `$(Version).0` Some good resources: * https://github.com/NuGet/Home/wiki/Adding-nuget-pack-as-a-msbuild-target * https://andrewlock.net/version-vs-versionsuffix-vs-packageversion-what-do-they-all-mean/
1 parent 335e9d7 commit 957c7f7

File tree

2 files changed

+7
-33
lines changed

2 files changed

+7
-33
lines changed

GeoJSON.Net.nuspec

Lines changed: 0 additions & 28 deletions
This file was deleted.

src/GeoJSON.Net/GeoJSON.Net.csproj

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,22 @@
22

33
<PropertyGroup>
44
<TargetFrameworks>netstandard1.0;netstandard1.1;net35;net40;net45;</TargetFrameworks>
5-
<AssemblyName>GeoJSON.Net</AssemblyName>
6-
<AssemblyVersion>1.1.73</AssemblyVersion>
7-
<FileVersion>1.1.73</FileVersion>
85
<Description>.Net types for the GeoJSON RFC to be used with Json.Net</Description>
9-
<Authors></Authors>
6+
<Authors>Matt Hunt;Joerg Battermann;Xavier Fischer</Authors>
107
<Company>GeoJSON.Net</Company>
118
<Copyright>Copyright © Joerg Battermann, Matt Hunt, Xavier Fischer and Contributors, 2014 - 2019</Copyright>
129
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1310
<Version>1.1.73</Version>
11+
<PackageProjectUrl>https://github.com/GeoJSON-Net/GeoJSON.Net</PackageProjectUrl>
12+
<RepositoryUrl>https://github.com/GeoJSON-Net/GeoJSON.Net.git</RepositoryUrl>
13+
<RepositoryType>git</RepositoryType>
14+
<PackageTags>geojson;geo;json;geolocation</PackageTags>
15+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1416
<PackageReleaseNotes>Assembly is now strong named</PackageReleaseNotes>
1517
</PropertyGroup>
1618

1719
<ItemGroup>
1820
<PackageReference Include="Newtonsoft.Json" Version="10.0.2" />
1921
</ItemGroup>
20-
22+
2123
</Project>

0 commit comments

Comments
 (0)