Cannot resolve action with tag helper and ActionName attribute

I have an ASP.NET Core project with the following controller:

public class TestController : Controller
{

    [ActionName("Index")]
    public IActionResult GetIndex()
    {
        return View();
    }
}

When I reference this action using a tag helper, the action is red and it says "Cannot resolve action 'Index'":

<a asp-controller="Test" asp-action="Index">Test</a>

I'm using ReSharper 2017.2.2, but it's also not working using ReSharper 2017.3 EAP 9. It does work when I remove the ActionName attribute from the action (and rename the method to "Index"), but that's not something I can do for all actions I have.

0
1 comment
Official comment

Hello Louis!

 

Thank you for the feedback.

I've filed issue here - https://youtrack.jetbrains.com/issue/RSRP-467653.

Please feel free to comment or vote for it.

Thank you.

Please sign in to leave a comment.