diff --git a/src/Sentry/Internal/RandomValuesFactory.cs b/src/Sentry/Internal/RandomValuesFactory.cs index 4b14d198da..cf84184667 100644 --- a/src/Sentry/Internal/RandomValuesFactory.cs +++ b/src/Sentry/Internal/RandomValuesFactory.cs @@ -7,7 +7,7 @@ internal abstract class RandomValuesFactory public abstract double NextDouble(); public abstract void NextBytes(byte[] bytes); -#if !(NETSTANDARD2_0 || NET462) +#if !(NETSTANDARD2_0 || NETFRAMEWORK) public abstract void NextBytes(Span bytes); #endif diff --git a/src/Sentry/Internal/SynchronizedRandomValuesFactory.cs b/src/Sentry/Internal/SynchronizedRandomValuesFactory.cs index 62a76f04f8..28236d3fba 100644 --- a/src/Sentry/Internal/SynchronizedRandomValuesFactory.cs +++ b/src/Sentry/Internal/SynchronizedRandomValuesFactory.cs @@ -17,7 +17,7 @@ internal class SynchronizedRandomValuesFactory : RandomValuesFactory public override double NextDouble() => Random.NextDouble(); public override void NextBytes(byte[] bytes) => Random.NextBytes(bytes); -#if !(NETSTANDARD2_0 || NET462) +#if !(NETSTANDARD2_0 || NETFRAMEWORK) public override void NextBytes(Span bytes) => Random.NextBytes(bytes); #endif diff --git a/src/Sentry/Sentry.csproj b/src/Sentry/Sentry.csproj index 77d1d4b965..0cdfe5d791 100644 --- a/src/Sentry/Sentry.csproj +++ b/src/Sentry/Sentry.csproj @@ -8,7 +8,7 @@ - net8.0;net6.0;netstandard2.1;netstandard2.0;net462 + net8.0;net6.0;netstandard2.1;netstandard2.0;net462;net48 $(TargetFrameworks);net7.0-android;net8.0-android $(TargetFrameworks);net7.0-ios;net8.0-ios $(TargetFrameworks);net7.0-maccatalyst;net8.0-maccatalyst @@ -45,7 +45,7 @@ - + @@ -71,7 +71,7 @@ On .NET Framework, we need a package reference to System.Runtime.InteropServices.RuntimeInformation. This is used in Sentry.PlatformAbstractions.RuntimeInfo. It's already built-in for all other targets. --> - + diff --git a/src/Sentry/SpanId.cs b/src/Sentry/SpanId.cs index a4e1062a40..c199c2bfe4 100644 --- a/src/Sentry/SpanId.cs +++ b/src/Sentry/SpanId.cs @@ -48,7 +48,7 @@ namespace Sentry; /// public static SpanId Create() { -#if NETSTANDARD2_0 || NET462 +#if NETSTANDARD2_0 || NETFRAMEWORK byte[] buf = new byte[8]; #else Span buf = stackalloc byte[8]; @@ -57,7 +57,7 @@ public static SpanId Create() Random.NextBytes(buf); var random = BitConverter.ToInt64(buf -#if NETSTANDARD2_0 || NET462 +#if NETSTANDARD2_0 || NETFRAMEWORK , 0); #else );