File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ( ) ;
Original file line number Diff line number Diff line change 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
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 >
You can’t perform that action at this time.
0 commit comments