-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Open
Labels
area-Tools-ILLink.NET linker development as well as trimming analyzers.NET linker development as well as trimming analyzersblockedIssue/PR is blocked on something - see commentsIssue/PR is blocked on something - see comments
Milestone
Description
DynamicallyAccessedMembers annotations are not supported for arbitrary types. The ILLink analyzer normally produces IL2098 warnings when the annotations are applied to unsupported types, but this isn't working for top-level methods:
using System.Diagnostics.CodeAnalysis;
RequireAll(GetFoo());
// This should warn
static void RequireAll([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Foo f) {}
static Foo GetFoo() => new Foo();
class Foo {}
Metadata
Metadata
Assignees
Labels
area-Tools-ILLink.NET linker development as well as trimming analyzers.NET linker development as well as trimming analyzersblockedIssue/PR is blocked on something - see commentsIssue/PR is blocked on something - see comments
Type
Projects
Status
No status