Skip to content

Commit

Permalink
Merge branch 'main' into simplify-preprocessor
Browse files Browse the repository at this point in the history
  • Loading branch information
Kielek authored Oct 7, 2024
2 parents 54922ff + 71ca622 commit 4c0f81d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<PackageTags>$(PackageTags);distributed-tracing;Kafka;Confluent.Kafka</PackageTags>
<IncludeSharedExceptionExtensionsSource>true</IncludeSharedExceptionExtensionsSource>
<MinVerTagPrefix>Instrumentation.ConfluentKafka-</MinVerTagPrefix>
<ImplicitUsings>true</ImplicitUsings>
</PropertyGroup>

<!-- Do not run Package Baseline Validation as this package has never released a stable version.
Expand Down
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
2 changes: 1 addition & 1 deletion test/TestApp.AspNetCore/TestApp.AspNetCore.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFrameworks>$(SupportedNetTargets)</TargetFrameworks>
<TargetFrameworks>$(SupportedNetTargetsWithoutNet6)</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 4c0f81d

Please sign in to comment.