MVC view completion unavailable if the view method is overridden
Hello,
ReSharper 6 provides autocompletion and validation for MVC view names, but this does not work if the View method is reimplemented.
- View name validation:

- No view name validation when overridden:

Can ReSharper 6 validate view names with custom View methods, or might this be possible in future versions?
Please sign in to leave a comment.
You need to annotate viewName parameter of your custom method with AspMvcView attribute.
You can copy all necessary attributes from ReSharper -> Options -> Code Annotations.
Or take a look here http://stackoverflow.com/questions/4219788/making-resharper-highlight-custom-htmlhelper-parameters/4220848#4220848
Perfect. Thanks!