Partial view not found in Razor Pages despite being in the correct location
I am looking to import a few partials into a page within the _Layout file.
The _Layout file contains the following code:
_TopHeader is rendered completely fine despite being in the same folder and location as _NewPost. They both have the same file extention however _NewPost cannot be found.
The error message thrown is:
I have also attached the file structure.
1 Reply
Are you sure
_NewPost.cshtml
is actually part of the build solution?