Skip to content

[net] The linker does not remove resources from System.Runtime.InteropServices.dll #14257

Closed
@spouliot

Description

@spouliot

The System.Runtime.InteropServices.dll assembly is now part of every application for its NFloat type forwarder.

It's linked (code is removed) but the resources files are not removed like other assemblies.

Steps to Reproduce

  1. cd tests/dotnet
  2. make compare

Expected Behavior

Resources from System.Runtime.InteropServices.dll are removed.

Actual Behavior

System.Runtime.InteropServices.dll still contains resources

  • FxResources.System.Runtime.InteropServices.SR.resources
  • ILLink.Substitutions.xml

The later resource has instructions to remove the former resource.

Environment

main

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIf an issue is a bug or a pull request a bug fixdotnetAn issue or pull request related to .NET (6)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions