Skip to content

System.IO.Ports should not depend on System.Native #33130

@ericstj

Description

@ericstj

We don't consider System.Native to be a stable public API, yet System.IO.Ports depends on it. This can cause someone using an older System.IO.Ports to break when running on a newer shared framework where we update System.Native.

System.IO.Ports should remove this dependency, for example by including the same exports in its own native library, or eliminating the usage by moving functionality into the assembly.

We could potentially add validation to our packaging to catch this (we already analyze assemblies for DllImports here).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions