Skip to content

Ban SR.GetResourceString #81338

@MichalStrehovsky

Description

@MichalStrehovsky

We should forbid calling SR.GetResourceString directly. This throws off size optimizations that try to get rid of the unused resource strings like #80896. We need to clean these up and enable enforcement.

Microsoft.CSharp, Microsoft.VisualBasic, System.ComponentModel seem to be the worst offenders.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions