As the title states, I'm having a finicky issue with .NET Core 2.2. I'm using tag helpers all over, but on the specific page that I'm having trouble with, it's actually the most simple use-case of all:
<a class="logout" asp-page="/Admin/Logout">Logout</a>
Some relevant notes:
- As of yesterday, it worked in all environments without any issues.
- This morning I made some changes seemingly unrelated to this page, and published again.
- In the published version (on Azure), the tag helpers for this page only don't render, but instead appear in the source code as literals. (e.g.
<a asp-page="..."></a>) - Still works without issue locally.
Here is the directory structure. The page in question is /Admin/Index.cshtml:
And my _ViewImports.cshtml (which again, I haven't changed in months):
@using redacted
@namespace redacted.Pages
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
