Skip to content

Commit 5e6fcd9

Browse files
tmilnthorpangularsen
authored andcommitted
Signing packages in favor of separate .Signed assemblies.
1 parent 875ca71 commit 5e6fcd9

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

UnitsNet.Serialization.JsonNet/UnitsNet.Serialization.JsonNet.Signed.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
<DefineConstants>SIGNED</DefineConstants>
1313
<SignAssembly>true</SignAssembly>
1414
<AssemblyOriginatorKeyFile>$(MSBuildProjectDirectory)\..\UnitsNet.snk</AssemblyOriginatorKeyFile>
15+
<Description>A helper library for serializing and deserializing types in Units.NET using Json.NET. This package is deprecated, please use the UnitsNet.Serialization.JsonNet package which is now signed.</Description>
16+
<PackageTags>unit units measurement json Json.NET Newtonsoft serialize deserialize serialization deserialization deprecated</PackageTags>
1517
<LangVersion>7.3</LangVersion>
1618
</PropertyGroup>
1719

UnitsNet.Serialization.JsonNet/UnitsNet.Serialization.JsonNet.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
<Import Project="UnitsNet.Serialization.JsonNet.Common.props" />
33
<PropertyGroup>
44
<LangVersion>7.3</LangVersion>
5+
<SignAssembly>true</SignAssembly>
6+
<AssemblyOriginatorKeyFile>../UnitsNet.snk</AssemblyOriginatorKeyFile>
7+
<DelaySign>false</DelaySign>
58
</PropertyGroup>
69

710
<!-- Unsigned project references, will also generate the corresponding nuget dependencies -->

UnitsNet/InternalHelpers/ReflectionBridgeExtensions.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,8 @@
2424
using System.Collections.Generic;
2525
using System.Reflection;
2626

27-
#if SIGNED
2827
[assembly: InternalsVisibleTo("UnitsNet.Serialization.JsonNet.Signed, PublicKey=002400000480000094000000060200000024000052534131000400000100010089abdcb0025f7d1c4c766686dd852b978ca5bb9fd80bba9d3539e8399b01170ae0ea10c0c3baa301b1d13090d5aff770532de00c88b67c4b24669fde7f9d87218f1c6c073a09016cbb2f87119b94227c2301f4e2a096043e30f7c47c872bbd8e0b80d924952e6b36990f13f847e83e9efb107ec2121fe39d7edaaa4e235af8c4")]
29-
#else
30-
[assembly: InternalsVisibleTo("UnitsNet.Serialization.JsonNet")]
31-
#endif
28+
[assembly: InternalsVisibleTo("UnitsNet.Serialization.JsonNet, PublicKey=002400000480000094000000060200000024000052534131000400000100010089abdcb0025f7d1c4c766686dd852b978ca5bb9fd80bba9d3539e8399b01170ae0ea10c0c3baa301b1d13090d5aff770532de00c88b67c4b24669fde7f9d87218f1c6c073a09016cbb2f87119b94227c2301f4e2a096043e30f7c47c872bbd8e0b80d924952e6b36990f13f847e83e9efb107ec2121fe39d7edaaa4e235af8c4")]
3229

3330
// Based on
3431
// https://github.com/StefH/ReflectionBridge/blob/c1e34e57fe3fc93507e83d5cebc1677396645397/ReflectionBridge/src/ReflectionBridge/Extensions/ReflectionBridgeExtensions.cs

UnitsNet/UnitsNet.Signed.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
<DefineConstants>SIGNED</DefineConstants>
1313
<SignAssembly>true</SignAssembly>
1414
<AssemblyOriginatorKeyFile>$(MSBuildProjectDirectory)\..\UnitsNet.snk</AssemblyOriginatorKeyFile>
15+
<Description>Get all the common units of measurement and the conversions between them. It is light-weight and thoroughly tested. This package is deprecated, please use the UnitsNet package which is now signed.</Description>
16+
<PackageTags>unit units quantity quantities measurement si metric imperial abbreviation abbreviations convert conversion parse immutable deprecated</PackageTags>
1517
<LangVersion>7.3</LangVersion>
1618
</PropertyGroup>
1719

UnitsNet/UnitsNet.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<LangVersion>7.3</LangVersion>
4+
<SignAssembly>true</SignAssembly>
5+
<DelaySign>false</DelaySign>
6+
<AssemblyOriginatorKeyFile>../UnitsNet.snk</AssemblyOriginatorKeyFile>
47
</PropertyGroup>
58
<Import Project="UnitsNet.Common.props" />
69
</Project>

0 commit comments

Comments
 (0)