Asp.net Core MVCAreas not showing up in asp-area tag helper

Answered

View cshtml file referencing a controller action 
<a asp-area="MyArea" asp-controller="MyController" asp-action="Index" class="btn btn-primary">Start</a>

I am unable to get intellisense on the asp-area tag helper. I'm not sure if it's related but I did the following regarding my controller action to view references not working. Maybe this issue is something different? This an issue with my VS17 razor tooling?

I followed steps from the post https://resharper-support.jetbrains.com/hc/en-us/community/posts/206011909-ASP-NET-MVC-in-a-subfolder?page=1#community_comment_205820335

Here is what my assembly attributes look like

[assembly: AspMvcViewLocationFormat(@"~\Areas\{1}\{0}.cshtml")]
[assembly: AspMvcViewLocationFormat(@"~\Areas\{1}/Views/{0}.cshtml")]

[assembly: AspMvcAreaViewLocationFormat(@"~\Areas\{2}\{1}\{0}.cshtml")]
[assembly: AspMvcAreaViewLocationFormat(@"~\Areas\{2}\{1}\Views\{0}.cshtml")]
[assembly: AspMvcAreaViewLocationFormat(@"~\Areas\{2}\Shared\{0}.cshtml")]

[assembly: AspMvcViewLocationFormat(@"~\Areas\Shared\{0}.cshtml")]

//I just added this trying to get the asp-for tag helper to work with my areas
[assembly: AspMvcAreaMasterLocationFormat(@"~\Areas\{2}")]

 

I have each of my controllers with their attribute [Area("MyArea")] and my app's navigation works properly. 

Thanks for any help!

Kurt

 

 

 

 

1 comment
Comment actions Permalink
Official comment

It has not supported yet, I filed a new request on YouTrack https://youtrack.jetbrains.com/issue/RSRP-465179. 

Thanks! 

Please sign in to leave a comment.