The LayoutAttribute property in Microsoft.AspNetCore.Components.LayoutAttribute should also have [DynamicallyAccessedMembers(Component)] annotation. Currently, only the constructor parameter is annotated, which gives consumers of the attribute a false warning when accessing the property.
|
public Type LayoutType { get; private set; } |
Should be:
[DynamicallyAccessedMembers(Component)]
public Type LayoutType { get; private set; }