-
Notifications
You must be signed in to change notification settings - Fork 25.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tutorial seemingly inconsistent with main docs on Shared folder #7200
Comments
Hi @escalonn ... Thanks for commenting. We're still working on 2.1 topic updates, so that's the reason for the discrepancy. @Rick-Anderson Although this is marked for the Get started topic, it will actually be for updates to ... |
So out of interest which is correct? |
|
That's all correct. You don't put Razor Pages layout files in the MVC Views/Shared folder |
Where does it say that in the 2.1 version? |
Just to add on to this, I created a 2.1 app and the _Layout.cshtml is under Pages/Shared. |
This doc was updated to correct Pages/shared |
This tutorial places the layout page, and some partials, in Pages/Shared folder, while the main documentation for Razor Pages says to put the layout page directly in Pages folder, and also says:
"We recommend you not put the layout file in the Views/Shared folder. Views/Shared is an MVC views pattern. Razor Pages are meant to rely on folder hierarchy, not path conventions."
Clarification in one place or the other is necessary.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: