Skip to content

MAUI App .NET 10 RC2 new project bundle size is around 1 MB larger than .NET 9 #10550

@trivalik

Description

@trivalik

Description

This is follow up issue to dotnet/maui#31316

I have created default template app project in both .NET9 and .NET 10 preview 7 (see other issue). Now I recreated for .NET 10 RC2 (include in visual studio 2026 Insider 11111.16)

   <AndroidPackageFormat>apk</AndroidPackageFormat>
    <TrimMode>full</TrimMode>

into csproj file.

The size is still bigger than NET9 24,249 KB. .NET RC2 size is now 25.198 KB, so 100 KB less to .NET 10 preview 7.

com.companyname.mauiapp2.apk.zip

Steps to Reproduce

Create new MAUI projects on System with .NET 9 and create a new MAUI project on Systems with .NET 10 RC2. Then compare the release output, in my case apk.

Link to public reproduction project repository

No response

Version with bug

10.0.0-rc.2

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

9.0.82 SR8.2

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    need-infoIssues that need more information from the author.t/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions