ReSharper 2026.1 Help

Code inspection: Unknown Razor layout

This inspection reports Razor Layout assignments that point to a layout file that cannot be resolved. That usually means the layout path is misspelled, the file does not exist, or the path is written relative to the wrong location.

Example

@{ Layout = "_Layout_Does_Not_Exist.cshtml"; }
@{ Layout = "_Layout.cshtml"; }
01 April 2026