Skip to content

NETStandard2.0 libraries referencing types absorbed into NETStandard2.1 cannot be used in NS2.1 #29209

@sgjsakura

Description

@sgjsakura

How to reproduce

In Visual Studio 2019 RTM, create a new .NET Standard library, and set the target framework to ".NET Standard 2.1". Then add a reference to System.IO.Pipelines (either the lastest stable version 4.5.3 or beta version 4.6.0-preview3-191128.7).

Error message

The type System.ReadOnlySpan<T> (or other types defined in System.Memory assembly) is defined in both System.Memory, version=4.0.1.0 and netstandard, version=2.1.0.0.

Comments

Maybe the reference list of System.IO.Pipelines assembly under netstd 2.1 should be updated in order to fix this problem, and many thanks~

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions