Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NativeAOT: stop shipping assemblies #18472

Closed
Tracked by #80905 ...
rolfbjarne opened this issue Jun 20, 2023 · 1 comment
Closed
Tracked by #80905 ...

NativeAOT: stop shipping assemblies #18472

rolfbjarne opened this issue Jun 20, 2023 · 1 comment
Assignees
Labels
app-size enhancement The issue or pull request is an enhancement
Milestone

Comments

@rolfbjarne
Copy link
Member

From: #17374 (comment):

I know this is still WIP but wanted to draw attention to one thing.

@rolfbjarne rolfbjarne added enhancement The issue or pull request is an enhancement app-size labels Jun 20, 2023
@rolfbjarne rolfbjarne added this to the .NET 8 milestone Jun 20, 2023
dalexsoto pushed a commit that referenced this issue Jul 6, 2023
Since NativeAOT generates native libraries and executables that do not
rely on assemblies they were compiled from, all managed assemblies can
be excluded from the application bundle.

This reduces the size of the application bundle by `3,17Mb` (or ~19%
compared to the baseline)

| MAUI ios app | Base | This PR | diff (%) |
|--------------|-----------|-----------|----------|
| SOD (Mb)     | 50,13 | 41,93 | -16,3%      |
| .ipa (Mb)    | 16,59  | 13,43  | -19%      |

Fixes: #18472
@ivanpovazan
Copy link
Contributor

Fixed by: bcb8e5c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app-size enhancement The issue or pull request is an enhancement
Projects
None yet
Development

No branches or pull requests

2 participants