Phase 2a: Hot path items annotated. #66
main.yml
on: push
ci
/
gate
4s
ci
/
dotnet-format
1m 55s
ci
/
pre-commit
14s
ci
/
build
1m 14s
ci
/
publish
0s
Annotations
11 errors and 11 warnings
|
ci / build:
src/Autofac/Util/AssemblyExtensions.cs#L35
Using member 'System.Reflection.Assembly.DefinedTypes.get' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Types might be removed.
|
|
ci / build:
src/Autofac/Core/Activators/Reflection/AutowiringPropertyInjector.cs#L114
'type' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicProperties', 'DynamicallyAccessedMemberTypes.NonPublicProperties' in call to 'System.Reflection.RuntimeReflectionExtensions.GetRuntimeProperties(Type)'. The parameter 'instanceType' of method 'Autofac.Core.Activators.Reflection.AutowiringPropertyInjector.GetInjectableProperties(Type)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
|
|
ci / build:
src/Autofac/Core/Activators/Reflection/DefaultValueParameter.cs#L70
'type' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicParameterlessConstructor' in call to 'System.Activator.CreateInstance(Type)'. The return value of method 'System.Reflection.ParameterInfo.ParameterType.get' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
|
|
ci / build:
src/Autofac/Features/Variance/ContravariantRegistrationSource.cs#L140
'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.Interfaces' in call to 'System.Type.GetInterfaces()'. The parameter 'type' of method 'Autofac.Features.Variance.ContravariantRegistrationSource.GetBagOfTypesAssignableFrom(Type)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
|
|
ci / build:
src/Autofac/Features/Variance/ContravariantRegistrationSource.cs#L95
Using member 'System.Type.MakeGenericType(params Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime.
|
|
ci / build:
src/Autofac/Features/AttributeFilters/MetadataFilterAttribute.cs#L182
Using member 'System.Reflection.MethodInfo.MakeGenericMethod(params Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime.
|
|
ci / build:
src/Autofac/Features/AttributeFilters/MetadataFilterAttribute.cs#L154
Using member 'System.Reflection.MethodInfo.MakeGenericMethod(params Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime.
|
|
ci / build:
src/Autofac/Features/AttributeFilters/MetadataFilterAttribute.cs#L153
Using member 'System.Reflection.MethodInfo.MakeGenericMethod(params Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime.
|
|
ci / build:
src/Autofac/Util/ActivatorMemberTypes.cs#L44
Mark enum 'DynamicallyAccessedMemberTypes' with 'Flags' attribute or remove this bitwise operation.
|
|
ci / build:
src/Autofac/Util/ActivatorMemberTypes.cs#L44
Mark enum 'DynamicallyAccessedMemberTypes' with 'Flags' attribute or remove this bitwise operation.
|
|
ci / dotnet-format
Process completed with exit code 2.
|
|
ci / pre-commit
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/cache@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
ci / dotnet-format:
src/Autofac/Features/Scanning/TypeExtensions.cs#L70
'implementationType' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicConstructors', 'DynamicallyAccessedMemberTypes.PublicProperties' in call to 'Autofac.Builder.RegistrationBuilder.ForType(Type)'. The parameter 'type' of method 'TypeBuilderFactory(Type)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
|
|
ci / dotnet-format:
src/Autofac/ModuleRegistrationExtensions.cs#L165
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.
|
|
ci / dotnet-format:
src/Autofac/RegistrationExtensions.Decorators.cs#L181
'implementationType' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicProperties' in call to 'Autofac.Builder.RegistrationBuilder.ForType(Type)'. The parameter 'decoratorType' of method 'Autofac.RegistrationExtensions.RegisterDecorator(ContainerBuilder, Type, Type, Func<IDecoratorContext, Boolean>)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
|
|
ci / dotnet-format:
src/Autofac/RegistrationExtensions.Decorators.cs#L138
'TImplementer' generic argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicProperties' in 'Autofac.Builder.RegistrationBuilder.ForType<TImplementer>()'. The generic parameter 'TDecorator' of 'Autofac.RegistrationExtensions.RegisterDecorator<TDecorator, TService>(ContainerBuilder, Func<IDecoratorContext, Boolean>)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
|
|
ci / dotnet-format:
src/Autofac/RegistrationExtensions.cs#L272
'type' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicProperties', 'DynamicallyAccessedMemberTypes.NonPublicProperties' in call to 'System.Reflection.RuntimeReflectionExtensions.GetRuntimeProperties(Type)'. The generic parameter 'TAttribute' of 'Autofac.RegistrationExtensions.WithMetadataFrom<TAttribute>(IRegistrationBuilder<Object, ScanningActivatorData, DynamicRegistrationStyle>)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
|
|
ci / dotnet-format:
src/Autofac/Util/InternalTypeExtensions.cs#L353
Using member 'System.Type.MakeGenericType(params Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime.
|
|
ci / dotnet-format:
src/Autofac/Util/InternalTypeExtensions.cs#L336
'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.Interfaces' in call to 'System.Type.GetInterfaces()'. The parameter 'parameter' of method 'Autofac.Util.InternalTypeExtensions.ParameterCompatibleWithTypeConstraint(Type, Type)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
|
|
ci / dotnet-format:
src/Autofac/Util/InternalTypeExtensions.cs#L353
Call to 'System.Type.MakeGenericType(params Type[])' can not be statically analyzed. It's not possible to guarantee the availability of requirements of the generic type.
|
|
ci / dotnet-format:
src/Autofac/Util/InternalTypeExtensions.cs#L379
'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.Interfaces' in call to 'System.Type.GetInterfaces()'. The parameter 'candidateType' of method 'Autofac.Util.InternalTypeExtensions.TypesAssignableFrom(Type)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
|
|
ci / dotnet-format:
src/Autofac/Util/InternalTypeExtensions.cs#L281
'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.Interfaces' in call to 'System.Type.GetInterfaces()'. The parameter 'this' of method 'Autofac.Util.InternalTypeExtensions.CheckInterfacesAreOpenGenericTypeOf(Type, Type)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
|