Skip to content

Commit bc9ab4c

Browse files
committed
Fix build issue
1 parent c4bb2f0 commit bc9ab4c

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/CacheTower.Serializers.SystemTextJson/CacheTower.Serializers.SystemTextJson.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<Authors>James Turner</Authors>
99
</PropertyGroup>
1010

11-
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard6.0'">
11+
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
1212
<PackageReference Include="System.Text.Json" Version="6.0.8" />
1313
</ItemGroup>
1414

src/CacheTower/Internal/CacheEntryKeyLock.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public bool AcquireLock(string cacheKey)
2222
keyLocks[cacheKey] = null;
2323
}
2424
return hasLock;
25-
#elif NETSTANDARD2_1
25+
#else
2626
return keyLocks.TryAdd(cacheKey, null);
2727
#endif
2828
}
@@ -56,7 +56,7 @@ private bool TryRemove(string cacheKey, out TaskCompletionSource<ICacheEntry>? c
5656
return true;
5757
}
5858
return false;
59-
#elif NETSTANDARD2_1
59+
#else
6060
return keyLocks.Remove(cacheKey, out completionSource);
6161
#endif
6262
}

src/CacheTower/Internal/MD5HashUtility.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static unsafe string ComputeHash(string value)
1717
var bytes = Encoding.UTF8.GetBytes(value);
1818
var hashBytes = HashAlgorithm.ComputeHash(bytes);
1919

20-
#elif NETSTANDARD2_1
20+
#else
2121
public static unsafe string ComputeHash(ReadOnlySpan<char> value)
2222
{
2323
var encoding = Encoding.UTF8;
@@ -29,9 +29,9 @@ public static unsafe string ComputeHash(ReadOnlySpan<char> value)
2929
HashAlgorithm.TryComputeHash(bytes, hashBytes, out var _);
3030
#endif
3131

32-
//Based on byte conversion implementation in BitConverter (but with the dash stripped)
33-
//https://github.com/dotnet/coreclr/blob/fbc11ea6afdaa2fe7b9377446d6bb0bd447d5cb5/src/mscorlib/shared/System/BitConverter.cs#L409-L440
34-
static char GetHexValue(int i)
32+
//Based on byte conversion implementation in BitConverter (but with the dash stripped)
33+
//https://github.com/dotnet/coreclr/blob/fbc11ea6afdaa2fe7b9377446d6bb0bd447d5cb5/src/mscorlib/shared/System/BitConverter.cs#L409-L440
34+
static char GetHexValue(int i)
3535
{
3636
if (i < 10)
3737
{

0 commit comments

Comments
 (0)