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 Jul 3, 2024
1 parent ce210fa commit 24faa99
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();
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 @@ private AddressSet(in ImmutableArray<Address> addresses, bool bypassCheck)

/// <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 24faa99

Please sign in to comment.