Skip to content

Does illink walk through resource files? #2840

Closed
@kant2002

Description

@kant2002

I have this warning in WinForms

winforms\src\System.Windows.Forms\src\System\Resources\ResXDataNode.cs(129,28): error IL2077: 'name' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicParameterlessConstructor
' in call to 'System.ComponentModel.Design.ITypeResolutionService.GetType(String, Boolean, Boolean)'. The field 'System.Resources.DataNodeInfo.TypeName' does not have matching annotations. The source value mu
st declare at least the same requirements as those declared on the target location it is assigned to.

This is indication that Type name stored in resource file require PublicParameterlessConstructor to be useful. I have dilemma, either I annotate that code as unprovable and apply RUC on the method. Or if illink can look at aseembly resources and read type name and keep public parameterless constructors to that type, that maybe useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions