.NET Core Minimal API string path pattern underline

Does anyone know what makes the “/about” string to be underlined in the above code?

It disappears when I disable code analysis, but there are no suggestions listed on what exactly the issue is.

0
3 comments

This underlining tells that this literal is interactable. Ctrl + Click should perform navigation to declarations, but in your case /about is a single declaration itself, so no navigation will be performed. 
Here's example where Ctrl + Click does something meaningful.

You can follow our documentation to review all your endpoints declarations in Endpoints Tool.

 

2
Please feel free to let us know if you need any support, have a nice day!

Regards,
0

Please sign in to leave a comment.