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
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Changed
The type discovery documentation now explains NativeAOT behavior: an assembly that contributes only through reflection and is never referenced from compiled code can be trimmed away. Root it explicitly with TrimmerRootAssembly or [DynamicDependency]. (#1217)
Fixed
AddTypeDiscovery(), and the generated-provider registration behind it, no longer throws PlatformNotSupportedException in an application published with NativeAOT. NativeAOT already runs every compiled module initializer before Main, so type discovery skips the assembly-reference walk there. Under JIT, discovery behaves as before. (#1217)