ReSharper
 
Get ReSharper
Get your hands on the new features ahead of the release by joining the Early Access Program for ReSharper 2025.1! Learn more

Code inspection: MVC (unknown view)

Last modified: 11 February 2024

This inspection checks whether the name of a view passed as a string literal to the Controller.View() method corresponds to any valid view item in your project. All view items are defined as .chtml files in the Views project directory.

By default, this inspection has the 'Error' severity level because a missing view will lead to a runtime error even if the project will compile.