ASP0017: Invalid route pattern
Value | |
---|---|
Rule ID | ASP0017 |
Category | Usage |
Fix is breaking or non-breaking | Non-breaking |
Cause
A route pattern is invalid.
Rule description
This diagnostic is emitted when a route pattern is invalid. In the example below, the route pattern contains an invalid token.
var app = WebApplication.Create();
app.MapGet("/{id", (int id) => ...);
How to fix violations
To fix a violation of this rule, correct the error identified in the analyzer message.
When to suppress warnings
Do not suppress a warning from this rule.
Surađujte s nama na GitHubu
Izvor za ovaj sadržaj možete pronaći na GitHubu, gdje možete stvarati i pregledavati probleme i zahtjeve za povlačenjem. Dodatne informacije potražite u našem vodiču za suradnike.
Povratne informacije
https://aka.ms/ContentUserFeedback.
Stiže uskoro: Tijekom 2024. postupno ćemo ukinuti servis Problemi sa servisom GitHub kao mehanizam za povratne informacije za sadržaj i zamijeniti ga novim sustavom za povratne informacije. Dodatne informacije potražite u članku:Pošaljite i pogledajte povratne informacije za