Code inspection: Unknown Razor section
This inspection reports Razor @section declarations whose name cannot be resolved by the surrounding layout. In practice, this usually means the section is declared in a view, but the layout does not render a section with that name.
Example
@section Scripts
{
<script src="page.js"></script>
}
@section scripts
{
<script src="page.js"></script>
}
01 April 2026