Repository navigation
Open
Labels
EpicGroups multiple user stories. Can be grouped under a theme.area-NativeAOT-coreclrpartner-impactThis issue impacts a partner who needs to be kept updateduntriagedNew issue has not been triaged by the area owner
Description
This epic tracks all work items in .NET and Native AOT aimed at reducing binary size for CsWinRT 3.0 and native Windows apps. CsWinRT 3.0 is being designed with trim/AOT as a first class citizen, and the primary motivation here is shrinking the Native AOT images of large apps (such as the Microsoft Store) and other inbox apps and Windows components that adopt it. Some of the savings require new APIs or changes in .NET and/or Native AOT, which are all linked here, so it's easier to see all of them at once. This follows the earlier epic #114179, which covered the functional work for CsWinRT 3.0.
Note
More items will be added here as additional issues and PRs are opened.
Native AOT (ILC)
- ILC: only keep type loader candidate type map entries when their generic arguments are present #137541
- ILC: fold RuntimeHelpers.IsBitwiseEquatable<T> branches before scanning #137569
- ILC: only keep delegate Invoke methods reflectable when they can be looked up on unknown delegate types #138052
Interop type maps
- [API Proposal]: TypeMapping.TryGetValue, ITypeMapValue<TValue> and type targets to read type map data without exposing Type #138056
- ILC: reuse frozen strings as keys of external type maps #138066
Reflection metadata
System.Text.Json
- [API Proposal]: JsonSourceGenerationOptionsAttribute.EmitAttributeProviders to opt out of generated attribute provider reflection #137566
- STJ: make async root (de)serialization non-generic over T to reduce Native AOT size #138029
Experiments/PoC-s
- ILC: do not root delegates that are only stored into fields nobody reads #138030
- ILC: use relative pointers in interface maps when optimizing for size #138046
- ILC: add opt-in per type map group switch to drop runtime-creatable type map keys #137570
- NativeAOT: add IlcStripNamesAssembly to strip type names from reflection metadata #137574
- Add ReflectionBlockedAttribute to remove the reflection metadata of annotated types in NativeAOT #138067
Metadata
Metadata
Assignees
Labels
EpicGroups multiple user stories. Can be grouped under a theme.area-NativeAOT-coreclrpartner-impactThis issue impacts a partner who needs to be kept updateduntriagedNew issue has not been triaged by the area owner
Type
Projects
- StatusShow more project fieldsNo status
Activity
dotnet-policy-service commentedon Nov 15, 2026
Tagging subscribers to this area: @agocke, @dotnet/ilc-contrib
See info in area-owners.md if you want to be subscribed.