Topic | Value |
---|---|
Id | ASP004 |
Severity | Warning |
Enabled | True |
Category | AspNetCoreAnalyzers.Routing |
Code | AttributeAnalyzer |
Route parameter type does not match the method parameter type.
ADD MOTIVATION HERE
ADD HOW TO FIX VIOLATIONS HERE
Configure the severity per project, for more info see MSDN.
#pragma warning disable ASP004 // Route parameter type does not match the method parameter type
Code violating the rule here
#pragma warning restore ASP004 // Route parameter type does not match the method parameter type
Or put this at the top of the file to disable all instances.
#pragma warning disable ASP004 // Route parameter type does not match the method parameter type
[System.Diagnostics.CodeAnalysis.SuppressMessage("AspNetCoreAnalyzers.Routing",
"ASP004:Route parameter type does not match the method parameter type",
Justification = "Reason...")]