Skip to content

Define behavior of AssemblyMetadata("IsTrimmable", "False") #2991

@sbomer

Description

@sbomer

We considered supporting [AssemblyMetadata("IsTrimmable", "False")], but decided against it at the time because overuse of this attribute would potentially prevent trimming in situations where only a trim-friendly part of a library is used. Now that the trimming defaults have changed to trim-by-default, we might want to reconsider.

We also changed the MSBuild logic so that setting MSBuild metadata <IsTrimmable>false</IsTrimmable> on an individual assembly (in the ManagedAssemblyToLink itemgroup) would give it the copy action - see #2856 (comment).

Personally I still don't see much value in this, but I opened this to track the discussion since it came up in Azure/azure-sdk-for-net#24238.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions