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
I was playing with native AoT and had a trim analysis warning IL2072.
ILC : Trim analysis warning IL2072: Microsoft.Extensions.DependencyInjection.IServiceCollectionExtensions.WithLinkGeneratorDecorator(IServiceCollection): 'implementationType' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicConstructors'in call to 'Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Describe(Type,Type,ServiceLifetime)'. The return value of method 'System.Object.GetType()' 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.
It is just a warning and based on my code path, the ImplementationInstance branch of the switch expression should not be hit.
This might not be an issue or you may already know a work around, but I did not find any comment on this warning, so I though I should share it.
First time writing an item on an OSS project. I read the code of conduct and etiquette, but feel free to share other unwritten rules if this post should be improved.
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Describe the bug
I was playing with native AoT and had a trim analysis warning
IL2072
.Steps To Reproduce
Package:
Services used:
Exceptions (if any)
No response
.NET Version
8
Anything else?
I think this is related to the instance at line 177, used at line 181.
aspnet-api-versioning/src/AspNetCore/WebApi/src/Asp.Versioning.Http/DependencyInjection/IServiceCollectionExtensions.cs
Lines 174 to 181 in 3fc0719
It is just a warning and based on my code path, the
ImplementationInstance
branch of theswitch
expression should not be hit.This might not be an issue or you may already know a work around, but I did not find any comment on this warning, so I though I should share it.
First time writing an item on an OSS project. I read the code of conduct and etiquette, but feel free to share other unwritten rules if this post should be improved.
The text was updated successfully, but these errors were encountered: