Fixed ErrorObjectWriter #421
Annotations
5 errors
Analyze:
src/AspNetCore/WebApi/src/Asp.Versioning.Http/DependencyInjection/IServiceCollectionExtensions.cs#L133
'implementationType' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicConstructors' in call to 'Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Describe(Type, Type, ServiceLifetime)'. The return value of method 'Microsoft.Extensions.DependencyInjection.IServiceCollectionExtensions.GetImplementationType(ServiceDescriptor)' 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.
|
Analyze:
src/AspNetCore/WebApi/src/Asp.Versioning.Http/Routing/ApiVersioningRouteOptionsSetup.cs#L28
Using member 'Microsoft.AspNetCore.Routing.RouteOptions.ConstraintMap.get' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. The linker cannot determine what constraints are being added via the ConstraintMap property. Prefer RouteOptions.SetParameterPolicy instead for setting constraints. This warning can be suppressed if this property is being used to read or delete constraints.
|
Analyze:
src/AspNetCore/WebApi/src/Asp.Versioning.Http/DependencyInjection/IServiceCollectionExtensions.cs#L133
'implementationType' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicConstructors' in call to 'Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Describe(Type, Type, ServiceLifetime)'. The return value of method 'Microsoft.Extensions.DependencyInjection.IServiceCollectionExtensions.GetImplementationType(ServiceDescriptor)' 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.
|
Analyze:
src/AspNetCore/WebApi/src/Asp.Versioning.Http/Routing/ApiVersioningRouteOptionsSetup.cs#L28
Using member 'Microsoft.AspNetCore.Routing.RouteOptions.ConstraintMap.get' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. The linker cannot determine what constraints are being added via the ConstraintMap property. Prefer RouteOptions.SetParameterPolicy instead for setting constraints. This warning can be suppressed if this property is being used to read or delete constraints.
|
Analyze
Process completed with exit code 1.
|