Skip to content

Release v7.26.2

Choose a tag to compare

@github-actions github-actions released this 25 Oct 11:27
b530806

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)