dotnet / dotnet/macios

[.NET] Optimize support for app extensions

Open
#10,051 4 comments 0 reactions 0 assignees View on GitHub
app-extensions app-size enhancement
Dominant language
C#
Stars
2.9k
Forks
576
Avg merge
2d 12h
Merged PRs (30d)
123

Description

We currently treat app extensions like separate apps, which means there are a lot of duplication.

This will be fixed by:

* [ ] Deduplication of runtime native libraries (libmono, libxamarin). This requires having these as frameworks, putting them in the main app only and having a rpath=../../Frameworks in the extension's native executable.
* Blocked for libmono because we don't have libmono as a framework yet (https://github.com/dotnet/runtime/issues/42846). We can still do this for libxamarin though.
* [ ] Deduplication of AOT-ed assemblies. This requires building assemblies to frameworks.
* [ ] Deduplication of linked output. This requires running the linker only once for all extensions + the main app, with all the assemblies in one big closure.
* [x] Deduplicate user frameworks between the app extensions and the app (tracked here: #17876).
* [x] Deduplicate icudt.dat between app extensions and the app (tracked here: #17877)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.