Skip to content

[Trimming] Consider using standard <IsTrimmable> property #41016

@JamesNK

Description

@JamesNK

Currently ASP.NET Core has a Trimmable property to indicate trimming. Custom MSBuild configuration then adds the [AssemblyMetadata("IsTrimmable", "True")] attribute to assemblies.

Consider moving to the standard IsTrimmable property that is built into .NET 6+ - https://docs.microsoft.com/en-us/dotnet/core/deploying/trimming/prepare-libraries-for-trimming#set-istrimmable.

IsTrimmable should continue to drive the generation of known trimmable assemblies which are passed to the LinkabilityChecker.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-infrastructureIncludes: MSBuild projects/targets, build scripts, CI, Installers and shared frameworkblockedThe work on this issue is blocked due to some dependencylinker-friendlinessTracking linker friendliness

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions