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