SA1300 - '_Page_Views_Shared__Layout_cshtml'
See original GitHub issueHi
I’m gettings this warning in my file Views\Shared\_Layout.cshtml
SA1300 Element '_Page_Views_Shared__Layout_cshtml' must begin with an uppercase letter.
I understand the rule, but i tried including this line on the top of the file with no success.
// <auto-generated />
<!DOCTYPE html> ...
(This isn’t working, I guess because the view is compiled and thats is not thr first line)
@{
// <auto-generated />
}
Microsoft .NET Core Shared Framework Host
Version : 1.1.0
Build : 928f77c4bc3f49d892459992fb6e1d5542cb5e86
Windows 7 x64
Visual Studio 2017
Thanks in advance… 😃
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
The layout view '~/Views/Shared/_Layout.cshtml' could not ...
cshtml, I have specified the path to the layout which I want to apply to the entire application but I keep getting the...
Read more >The layout page "~/Views/Shared/_Layout.cshtml" could ...
I got this error and I can't figure out what is going on. I am positive the _layout.cshtml resides in the shared folder...
Read more >Layout in ASP.NET Core
Learn how to use common layouts, share directives, and run common code before rendering views in an ASP.NET Core app.
Read more >What is Layout View in ASP.NET MVC
Layout views are shared with multiple views, so it must be stored in the Shared folder. By default, a layout view _Layout.cshtml is...
Read more >(#8) Layout file explanation | _Layout.cshtml in .NET 6
In this session, we will go through the complete explanation of _Layout. cshtml file in ASP MVC .NET 6. Layout is a very...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
FYI for anyone watching this, this will be fixed in a later preview of Visual Studio 2017 15.3
FYI we are tracking this feedback on Razor at aspnet/Razor#1449