MVC5 v5.2.8 breaks navigation
Answered
After updating the MVC5 NuGet references to v5.2.8, which was released 10 days ago, R# 2022.1 no longer allows me to navigate to the controller / action from a Url.Action call in a Razor file, and no longer recognizes that call as a usage of the action.
"Go to definition" on the action parameter invokes Visual Studio's navigation, and displays a decompiled version of the String class.
"Find usages" on the action does not return any usages in a Razor file.
IIRC, there was a similar error when 5.2.7 was released back in 2018.
Please sign in to leave a comment.
Hello Richard!
Here is a fix on the GitHub repo https://github.com/JetBrains/ExternalAnnotations/commit/a7982f89376fbef8f84360a4742f37a0eb74425d. The plugin has been updated today https://plugins.jetbrains.com/plugin/11616-externalannotations. Please restart Visual Studio and ReSharper will automatically update the bundled plugin.
It's also producing "cannot resolve template" errors for [UIHint("...")] attributes, even though the template exists and works correctly.
Hello Richard!
Thanks for reporting this. I've filed it to the YouTrack https://youtrack.jetbrains.com/issue/RSRP-488498. As usual for such cases, we have to update ReSharper External Annotations to support the new version. After we publish the new version of the plugin, it will automatically be downloaded by ReSharper and update External Annotations on your machine.
Excellent! Thanks for the quick response.