This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Description
I use ILMerge with System.Memory.dll, and inside it the type Span<T> was merged out to be marked with Obsolete:
[DebuggerDisplay("{ToString(),raw}")]
[DebuggerDisplay("{ToString(),raw}")]
[DebuggerTypeProxy(typeof(System.SpanDebugView<>))]
[DebuggerTypeProxy(typeof(System.SpanDebugView<>))]
[DefaultMember("Item")]
[Obsolete("Types with embedded references are not supported in this version of your compiler.", true)]
[System.Memory.IsByRefLikeAttribute]
[System.Memory.IsReadOnlyAttribute]
public struct Span<T> { ... }
Origin type is:
[DebuggerDisplay("{ToString(),raw}")]
[DebuggerDisplay("{ToString(),raw}")]
[DebuggerTypeProxy(typeof(System.SpanDebugView<>))]
[DebuggerTypeProxy(typeof(System.SpanDebugView<>))]
[DefaultMember("Item")]
public readonly ref struct Span<T> { ... }
Build error:
error CS0619: 'Span<T>' is obsolete: 'Types with embedded references are not supported in this version of your compiler.'
Can you help me work around this problem?