Skip to content

Annotate core for trimming and Native AOT compatibility #4

Annotate core for trimming and Native AOT compatibility

Annotate core for trimming and Native AOT compatibility #4

Triggered via pull request June 20, 2026 02:07
Status Success
Total duration 1m 1s
Artifacts

aot.yml

on: pull_request
verify-aot
58s
verify-aot
Fit to window
Zoom out
Zoom in

Annotations

9 warnings
verify-aot
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4, actions/setup-dotnet@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
verify-aot: test/Autofac.Test.AotWarnings/Program.cs#L28
Using member 'Autofac.ModuleRegistrationExtensions.RegisterAssemblyModules(ContainerBuilder, params Assembly[])' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Registering modules by scanning assemblies is not compatible with member-level trimming; the linker cannot determine which module types to preserve.
verify-aot: test/Autofac.Test.AotWarnings/Program.cs#L25
Using member 'Autofac.RegistrationExtensions.RegisterAssemblyTypes(ContainerBuilder, params Assembly[])' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Assembly scanning is unlikely to be compatible with member-level trimming; the linker will not be able to determine which types to preserve.
verify-aot: test/Autofac.Test.AotWarnings/Program.cs#L22
Using member 'Autofac.RegistrationExtensions.RegisterGenericDecorator(ContainerBuilder, Type, Type, Func<IDecoratorContext, Boolean>)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. Registering an open generic decorator constructs closed generic types at runtime via MakeGenericType, which may require dynamic code generation when closed over value types and is not compatible with native AOT.
verify-aot: test/Autofac.Test.AotWarnings/Program.cs#L19
Using member 'Autofac.RegistrationExtensions.RegisterGeneric(ContainerBuilder, Type)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. Registering open generic types constructs closed generic types at runtime via MakeGenericType, which may require dynamic code generation when closed over value types and is not compatible with native AOT.
verify-aot: test/Autofac.Test.AotWarnings/Program.cs#L28
Using member 'Autofac.ModuleRegistrationExtensions.RegisterAssemblyModules(ContainerBuilder, params Assembly[])' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Registering modules by scanning assemblies is not compatible with member-level trimming; the linker cannot determine which module types to preserve.
verify-aot: test/Autofac.Test.AotWarnings/Program.cs#L25
Using member 'Autofac.RegistrationExtensions.RegisterAssemblyTypes(ContainerBuilder, params Assembly[])' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Assembly scanning is unlikely to be compatible with member-level trimming; the linker will not be able to determine which types to preserve.
verify-aot: test/Autofac.Test.AotWarnings/Program.cs#L22
Using member 'Autofac.RegistrationExtensions.RegisterGenericDecorator(ContainerBuilder, Type, Type, Func<IDecoratorContext, Boolean>)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. Registering an open generic decorator constructs closed generic types at runtime via MakeGenericType, which may require dynamic code generation when closed over value types and is not compatible with native AOT.
verify-aot: test/Autofac.Test.AotWarnings/Program.cs#L19
Using member 'Autofac.RegistrationExtensions.RegisterGeneric(ContainerBuilder, Type)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. Registering open generic types constructs closed generic types at runtime via MakeGenericType, which may require dynamic code generation when closed over value types and is not compatible with native AOT.