Skip to content

Trim warnings introduced in 17.0.1 that are not present in 16.3.0 #1098

Description

@hach-que

Describe the bug
Just upgraded to 17.0.1 and now we're getting:

ILLink : Trim analysis error IL2067: YamlDotNet.ReflectionExtensions.GetPublicStaticMethod(Type, String, Type[]): 'type' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicMethods', 'DynamicallyAccessedMemberTypes.NonPublicMethods' in call to 'System.Reflection.RuntimeReflectionExtensions.GetRuntimeMethods(Type)'. The parameter 'type' of method 'YamlDotNet.ReflectionExtensions.GetPublicStaticMethod(Type, String, 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.

This trim warning was not present in 16.3.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions