Skip to content

Unexpected trim warnings from referenced assemblies #127960

Description

@sbomer

.NET 11 Preview 4 has a bug where unexpected trim warnings may show up for assemblies from PackageReference/ProjectReference.

The trimming defaults are supposed to show at most one trim warning per PackageReference/ProjectReference assembly (see https://learn.microsoft.com/en-us/dotnet/core/deploying/trimming/trimming-options#show-detailed-warnings). .NET 11 Preview 4 will show detailed warnings for these assemblies due to a regression introduced in #125630.

This is fixed in P5.

Activity

  1. added
    area-Tools-ILLink.NET linker development as well as trimming analyzers
    on May 8, 2026
  2. sbomer commented on May 8, 2026

    @sbomer
    MemberAuthor

    Fixed in #127656 (filed the issue for posterity).

  3. dotnet-policy-service commented on May 8, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @agocke, @dotnet/illink
    See info in area-owners.md if you want to be subscribed.

  4. locked and limited conversation to collaborators on Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-Tools-ILLink.NET linker development as well as trimming analyzers

    Type

    No type

    Projects

    • Status
      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions