Skip to content

Make API Compat check for cases where compiler emits references to internal modreq's in methods #23319

@ericstj

Description

@ericstj

See dotnet/runtime#61737

In this case the compiler emits references to the modreq [System.Text.Json]System.Runtime.CompilerServices.IsExternalInit. This type is defined as internal in System.Text.Json. If this appears in a public method, then we need to treat the modreq-target-type as effectively public, even if it is internal.

Treating it as public will ensure it is defined or forwarded in compatible assemblies.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions