Area links don't generate in asp.net-core-mvc
Got it!
I needed to add a _ViewImports.cshtml to my Areas folder
_ViewImports.cshtml needs the following inside:
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
Odd how it wasn't mentioned in the tutorial
Seeing as how this is the first result in searching for my issue and even though my issue was slightly different, I'll post my answer here.
My tags weren't working either. I had this:
<a href="@Url.Action("Queues", "Digium", new {Area = "Reporting"})">
and this:
<a asp-action="CurrentCalls" asp-controller="Digium" asp-area="Reporting">
And nothing was working... it wasn't recognizing the area and the links were coming out as
/Controller/Action?Area=MyArea
I was really confused because I had an area that was working just fine. That's when I realized that I had forgotten to put the Area annotation on the controller:
[Area("Marketing")]
public class LinkedInController : Controller
Don't forget your area annotation!