diff --git a/src/OpenTelemetry.Api/Internal/Guard.cs b/src/OpenTelemetry.Api/Internal/Guard.cs index 2624468d554..efaf5bc1e26 100644 --- a/src/OpenTelemetry.Api/Internal/Guard.cs +++ b/src/OpenTelemetry.Api/Internal/Guard.cs @@ -42,7 +42,7 @@ public CallerArgumentExpressionAttribute(string parameterName) } #endif -#if !NETCOREAPP3_0_OR_GREATER && !NETSTANDARD2_1_OR_GREATER +#if !NET6_0_OR_GREATER && !NETSTANDARD2_1_OR_GREATER namespace System.Diagnostics.CodeAnalysis { /// Specifies that an output is not even if diff --git a/src/OpenTelemetry/Internal/MathHelper.cs b/src/OpenTelemetry/Internal/MathHelper.cs index 2f847ffb4b6..91670f60daa 100644 --- a/src/OpenTelemetry/Internal/MathHelper.cs +++ b/src/OpenTelemetry/Internal/MathHelper.cs @@ -15,7 +15,7 @@ // using System.Diagnostics; -#if NETCOREAPP3_0_OR_GREATER +#if NET6_0_OR_GREATER using System.Numerics; #endif using System.Runtime.CompilerServices; @@ -86,7 +86,7 @@ public static int LeadingZero32(int value) [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int LeadingZero64(long value) { -#if NETCOREAPP3_0_OR_GREATER +#if NET6_0_OR_GREATER return BitOperations.LeadingZeroCount((ulong)value); #else unchecked