I have just created a new .net core 3.1 web project and I am able to successfully run it (obviously as one would expect)
but strangely when I add a partial tag helper in my Index.cshtml
file to a html file that i know exists:
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
<div class="text-center">
<h1 class="display-4">Welcome</h1>
<p>Learn about <a href="https://learn.microsoft.com/aspnet/core">building Web apps with ASP.NET Core</a>.</p>
<partial name="~/PrerenderAssets/styles.html" /> @* <-------- this line*@
</div>
it renders an exception saying it cannot find it as can be seen in the screenshot below:
This definitely use to work in a .net core 2.1 project I worked on before so after a couple hours researching I cannot seem to find what has changed in .net core 3.1 to cause this issue or is it that I am making a silly mistake somewhere?
you can replicate this issue by creating a new .net core 3.1 web project and creating a folder in the root with a html file it in and trying to render it in the Index.cshtml
file.
could someone enlighten me here please? thanks in advance.