Skip to content

.NET MAUI size regression #519

@jonathanpeppers

Description

@jonathanpeppers

.NET MAUI projects regressed in size after:

dotnet/maui@dfc9a20

Before:
MicrosoftTeams-image (3)

After:
MicrosoftTeams-image (4)

It appears the problem is that [assembly: AssemblyMetadata ("IsTrimmable", "True")] is not present in this assembly.

Somehow this line isn't picked up:

https://github.com/xamarin/AndroidX/blob/41f867f3f86e3e57d8f1aad396c29dd24ced2067/source/AssemblyInfo.cs#L13

One solution might be to set $(IsTrimmable) in a Directory.Build.targets instead of doing it in a C# file. That would also get the benefits of some of the trimmer analyzer warnings/errors as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions