You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[NativeAOT] IlcCompileInput ignores ILLink output when RunILLink=true #127577
ComputeIlcCompileInputs in Microsoft.NETCore.Native.targets sets IlcCompileInput from @(IntermediateAssembly). When RunILLink=true and ILLink runs before ILC, the main assembly in $(IntermediateLinkDir) may differ from IntermediateAssembly (e.g. due to pre-trimming assembly rewrites). ILC compiles the wrong assembly, causing runtime failures.
The default NativeAOT flow has RunILLink=false so this does not arise. Android sets RunILLink=true to run custom ILLink steps before ILC.
Workaround:
Override IlcCompileInput after ComputeIlcCompileInputs:
Activity
dotnet-policy-service commentedon Apr 29, 2026
Tagging subscribers to this area: @agocke, @dotnet/ilc-contrib
See info in area-owners.md if you want to be subscribed.
Override IlcCompileInput to use ILLink output for non-trimmable path
[NativeAOT] Decouple ILC from ILLink for trimmable type map path (#11183
[NativeAOT] Add GenerateNativeAotBootstrapSources task (#11255)