Skip to content

Commit

Permalink
[Shared.Tests] Replace .NET 6 target with .NET 8 (#2182)
Browse files Browse the repository at this point in the history
  • Loading branch information
joegoldman2 authored Oct 7, 2024
1 parent 0f2bef7 commit fc5cd8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Shared/RequestDataHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#nullable enable

#if NET8_0_OR_GREATER
#if NET
using System.Collections.Frozen;
#endif
using System.Diagnostics;
Expand All @@ -21,7 +21,7 @@ internal sealed class RequestDataHelper

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

#if NET8_0_OR_GREATER
#if NET
private readonly FrozenDictionary<string, string> knownHttpMethods;
#else
private readonly Dictionary<string, string> knownHttpMethods;
Expand All @@ -46,7 +46,7 @@ public RequestDataHelper(bool configureByHttpKnownMethodsEnvironmentalVariable)
["CONNECT"] = "CONNECT",
};

#if NET8_0_OR_GREATER
#if NET
this.knownHttpMethods = knownMethodSet.ToFrozenDictionary(StringComparer.OrdinalIgnoreCase);
#else
this.knownHttpMethods = knownMethodSet;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

Expand Down

0 comments on commit fc5cd8f

Please sign in to comment.