-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Open
Labels
area-System.Runtimecode-analyzerMarks an issue that suggests a Roslyn analyzerMarks an issue that suggests a Roslyn analyzerneeds-further-triageIssue has been initially triaged, but needs deeper consideration or reconsiderationIssue has been initially triaged, but needs deeper consideration or reconsideration
Milestone
Description
Description
MetadataUpdateHandlerAttribute expects the specified type to declare certain methods as documented here:
There is no design-time validation of this contract though. It would be useful to implement an analyzer and include it in the SDK.
It would prevent issues like https://github.com/dotnet/AspNetCore-ManualTests/issues/3086
Reproduction Steps
See https://github.com/dotnet/AspNetCore-ManualTests/issues/3086
Expected behavior
Analyzer should warn that the type does not implement required contract.
Actual behavior
No warning during build.
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
Metadata
Metadata
Assignees
Labels
area-System.Runtimecode-analyzerMarks an issue that suggests a Roslyn analyzerMarks an issue that suggests a Roslyn analyzerneeds-further-triageIssue has been initially triaged, but needs deeper consideration or reconsiderationIssue has been initially triaged, but needs deeper consideration or reconsideration