Skip to content

Commit

Permalink
chore: Add netcoreapp3.1 targetframework into the src build props.
Browse files Browse the repository at this point in the history
  • Loading branch information
s2quake committed Jun 28, 2024
1 parent d0e35b0 commit a2bcc0c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Import Project="..\Directory.Build.props" />

<PropertyGroup>
<TargetFrameworks Condition="'$(_IsPacking)'=='true'">$(TargetFrameworks);netstandard2.0;netstandard2.1</TargetFrameworks>
<TargetFrameworks Condition="'$(_IsPacking)'=='true'">$(TargetFrameworks);netstandard2.0;netstandard2.1;netcoreapp3.1</TargetFrameworks>
<LangVersion>9</LangVersion>
<IsPackable>true</IsPackable>
<IsTestProject>false</IsTestProject>
Expand Down
2 changes: 1 addition & 1 deletion src/Libplanet.Stun/Stun/Messages/StunMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ protected StunMessage()
var transactionId = new byte[12];
#if NETSTANDARD2_0_OR_GREATER
using var rng = new RNGCryptoServiceProvider();
#elif NET6_0_OR_GREATER
#elif NET6_0_OR_GREATER || NETCOREAPP3_1_OR_GREATER
using var rng = RandomNumberGenerator.Create();
#endif
rng.GetBytes(transactionId);
Expand Down
2 changes: 1 addition & 1 deletion src/Libplanet.Types/Assets/Currency.cs
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ public IValue Serialize()

private static SHA1 GetSHA1()
{
#if NETSTANDARD2_0_OR_GREATER
#if NETSTANDARD2_0_OR_GREATER || NETCOREAPP3_1_OR_GREATER
try
{
return new SHA1CryptoServiceProvider();

Check warning on line 734 in src/Libplanet.Types/Assets/Currency.cs

View workflow job for this annotation

GitHub Actions / docs

'SHA1CryptoServiceProvider' is obsolete: 'Derived cryptographic types are obsolete. Use the Create method on the base type instead.'

Check warning on line 734 in src/Libplanet.Types/Assets/Currency.cs

View workflow job for this annotation

GitHub Actions / docs

'SHA1CryptoServiceProvider' is obsolete: 'Derived cryptographic types are obsolete. Use the Create method on the base type instead.'

Check warning on line 734 in src/Libplanet.Types/Assets/Currency.cs

View workflow job for this annotation

GitHub Actions / check-build

'SHA1CryptoServiceProvider' is obsolete: 'Derived cryptographic types are obsolete. Use the Create method on the base type instead.'

Check warning on line 734 in src/Libplanet.Types/Assets/Currency.cs

View workflow job for this annotation

GitHub Actions / check-build

'SHA1CryptoServiceProvider' is obsolete: 'Derived cryptographic types are obsolete. Use the Create method on the base type instead.'

Check warning on line 734 in src/Libplanet.Types/Assets/Currency.cs

View workflow job for this annotation

GitHub Actions / Run Benchmark.Net benchmarks (macOS, self-hosted, ARM64)

'SHA1CryptoServiceProvider' is obsolete: 'Derived cryptographic types are obsolete. Use the Create method on the base type instead.'

Check warning on line 734 in src/Libplanet.Types/Assets/Currency.cs

View workflow job for this annotation

GitHub Actions / Run Benchmark.Net benchmarks (linux-8cores)

'SHA1CryptoServiceProvider' is obsolete: 'Derived cryptographic types are obsolete. Use the Create method on the base type instead.'

Check warning on line 734 in src/Libplanet.Types/Assets/Currency.cs

View workflow job for this annotation

GitHub Actions / Run Benchmark.Net benchmarks (windows-8cores)

'SHA1CryptoServiceProvider' is obsolete: 'Derived cryptographic types are obsolete. Use the Create method on the base type instead.'
Expand Down
2 changes: 1 addition & 1 deletion src/Libplanet.Types/Tx/AddressSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public IImmutableSet<Address> Remove(Address value) =>

/// <inheritdoc cref="IImmutableSet{T}.TryGetValue(T, out T)"/>
[Pure]
#if NETSTANDARD2_0_OR_GREATER
#if NETSTANDARD2_0_OR_GREATER || NETCOREAPP3_1_OR_GREATER
public bool TryGetValue(Address equalValue, out Address actualValue)
#elif NET6_0_OR_GREATER
public bool TryGetValue(
Expand Down

0 comments on commit a2bcc0c

Please sign in to comment.