Skip to content

Commit fc5cd8f

Browse files
authored
[Shared.Tests] Replace .NET 6 target with .NET 8 (open-telemetry#2182)
1 parent 0f2bef7 commit fc5cd8f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Shared/RequestDataHelper.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#nullable enable
55

6-
#if NET8_0_OR_GREATER
6+
#if NET
77
using System.Collections.Frozen;
88
#endif
99
using System.Diagnostics;
@@ -21,7 +21,7 @@ internal sealed class RequestDataHelper
2121

2222
private static readonly char[] SplitChars = new[] { ',' };
2323

24-
#if NET8_0_OR_GREATER
24+
#if NET
2525
private readonly FrozenDictionary<string, string> knownHttpMethods;
2626
#else
2727
private readonly Dictionary<string, string> knownHttpMethods;
@@ -46,7 +46,7 @@ public RequestDataHelper(bool configureByHttpKnownMethodsEnvironmentalVariable)
4646
["CONNECT"] = "CONNECT",
4747
};
4848

49-
#if NET8_0_OR_GREATER
49+
#if NET
5050
this.knownHttpMethods = knownMethodSet.ToFrozenDictionary(StringComparer.OrdinalIgnoreCase);
5151
#else
5252
this.knownHttpMethods = knownMethodSet;

test/OpenTelemetry.Contrib.Shared.Tests/OpenTelemetry.Contrib.Shared.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<!-- OmniSharp/VS Code requires TargetFrameworks to be in descending order for IntelliSense and analysis. -->
5-
<TargetFrameworks>$(SupportedNetTargets)</TargetFrameworks>
5+
<TargetFrameworks>$(SupportedNetTargetsWithoutNet6)</TargetFrameworks>
66
<TargetFrameworks Condition="$(OS) == 'Windows_NT'">$(TargetFrameworks);$(NetFrameworkMinimumSupportedVersion)</TargetFrameworks>
77
</PropertyGroup>
88

0 commit comments

Comments
 (0)