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:
resharper6-view-completion.png
No view name validation when overridden:
resharper6-view-completion-overridden.png

Can ReSharper 6 validate view names with custom View methods, or might this be possible in future versions?

2 comments

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

0

Please sign in to leave a comment.