Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/NATS.Client.Core/Internal/netstandard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
#pragma warning disable SA1204
#pragma warning disable SA1405

#if NETSTANDARD

// Enable init only setters
#if NET5_0_OR_GREATER
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.CompilerServices.IsExternalInit))]
#elif NETSTANDARD

namespace System.Runtime.CompilerServices
{
internal static class IsExternalInit
Expand All @@ -33,7 +35,9 @@ internal sealed class SkipLocalsInitAttribute : Attribute
{
}
}
#endif

#if NETSTANDARD
namespace System.Diagnostics
{
internal sealed class StackTraceHiddenAttribute : Attribute
Expand Down