Skip to content

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

Closed

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

Activity

  1. jfversluis commented on Oct 20, 2025

    @jfversluis
    Member
  2. jonathanpeppers commented on Oct 20, 2025

    @jonathanpeppers
    Member

    The app above is built for two architectures. If you are distributing for Google Play, the app store knows how to split this up per device when you submit an app bundle.

    Did you compare if our changes improves anything in .NET 10 RC 2 since the last time you filed this?

    You can try the new AndroidStripNativeLibraries property in your .csproj.

  3. transferred this issue fromdotnet/mauion Oct 20, 2025
  4. added
    needs-triage
    on Oct 20, 2025
  5. added
    need-info
    and removed
    needs-triage
    on Oct 20, 2025
  6. dotnet-policy-service commented on Oct 20, 2025

    @dotnet-policy-service

    Hi @@trivalik. We have added the "need-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

  7. dotnet-policy-service commented on Oct 28, 2025

    @dotnet-policy-service

    Hi @@trivalik. Due to inactivity, we will be closing this issue. Please feel free to re-open this issue if the issue persists. For enhanced visibility, if over 7 days have passed, please open a new issue and link this issue there. Thank you.

  8. locked and limited conversation to collaborators on Nov 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    need-infot/bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions