asp-page not working with RazorPages in .NET Core

I had a problem where my Razor Pages were rendering the "asp-page" Helper to the output HTML. It was happening with pages in an Area.
asp-page not working with RazorPages in .NET Core
Photo by Shubham Dhage / Unsplash

This post is for subscribers only