Skip to content

Stop using undocumented attribute trimming #9060

@sbomer

Description

@sbomer

Android framework version

net9.0-android

Affected platform version

.NET 9

Description

Android should consider removing the _AggressiveAttributeTrimming setting, see dotnet/runtime#88805.

Android targets are using the undocumented _AggressiveAttributeTrimming setting which cannot be statically validated with trim warnings. The use of this option was introduced in #6563 together with NullabilityInfoContextSupport which has been removed in dotnet/runtime#103970, so it's not clear how much size savings come from _AggressiveAttributeTrimming on its own.

Steps to Reproduce

n/a

Did you find any workaround?

No response

Relevant log output

No response

Metadata

Metadata

Labels

Area: App+Library BuildIssues when building Library projects or Application projects.Area: LinkerIssues when linking assemblies.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions