Skip to content

Commit cbf0c11

Browse files
committed
Make drop netstandard1.4, add net8.0
1 parent b221d73 commit cbf0c11

2 files changed

Lines changed: 4 additions & 9 deletions

File tree

src/SignhostAPIClient/Rest/StreamContentDigestOptionsExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ private static HashAlgorithm HashAlgorithmCreate(
6363
string algorithmName = options.DigestHashAlgorithm;
6464
HashAlgorithm algorithm = null;
6565

66-
#if NETSTANDARD1_4 || NETSTANDARD2_0
66+
#if NETSTANDARD2_0 || NET8_0
6767
switch (algorithmName) {
6868
case "SHA1":
6969
case "SHA-1":
@@ -98,7 +98,7 @@ private static HashAlgorithm HashAlgorithmCreate(
9898
}
9999

100100
private static HashAlgorithm DefaultHashAlgorithm() =>
101-
#if NETSTANDARD1_4 || NETSTANDARD2_0
101+
#if NETSTANDARD2_0 || NET8_0
102102
SHA256.Create();
103103
#else
104104
HashAlgorithm.Create();

src/SignhostAPIClient/SignhostAPIClient.csproj

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup Label="Build">
3-
<TargetFrameworks>netstandard2.0;netstandard1.4;net462</TargetFrameworks>
3+
<TargetFrameworks>netstandard2.0;net8.0;net462</TargetFrameworks>
44
<CodeAnalysisRuleSet>../signhost.ruleset</CodeAnalysisRuleSet>
55
<DefineConstants Condition="'$(TargetFramework)' == 'net462'">SERIALIZABLE</DefineConstants>
6-
<DefineConstants Condition="'$(TargetFramework)' == 'netstandard1.4'">TYPEINFO</DefineConstants>
76
<DefineConstants Condition="'$(TargetFramework)' == 'netstandard2.0'">TYPEINFO</DefineConstants>
87
<DefineConstants Condition="'$(TargetFramework)' == 'netstandard2.0'">SERIALIZABLE</DefineConstants>
8+
<DefineConstants Condition="'$(TargetFramework)' == 'net8.0'">TYPEINFO</DefineConstants>
99
<RootNamespace>Signhost.APIClient</RootNamespace>
1010
</PropertyGroup>
1111

@@ -53,9 +53,4 @@
5353
<Reference Include="System.Net.Http" />
5454
<PackageReference Include="System.ValueTuple" Version="4.6.1" />
5555
</ItemGroup>
56-
57-
<ItemGroup Label=".NET standard Package References" Condition="'$(TargetFramework)' == 'netstandard1.4'">
58-
<PackageReference Include="System.Security.Cryptography.Algorithms" Version="4.3.*" />
59-
<PackageReference Include="System.ValueTuple" Version="4.3.1" />
60-
</ItemGroup>
6156
</Project>

0 commit comments

Comments
 (0)