"Cannot resolve template" with UIHint

Answered

I have an ASP.NET MVC 5.2.7 application which uses UIHint on several model properties to specify the editor template.

The project compiles and runs as expected, and uses the correct editor template (from ~/Views/Shared/EditorTemplates/).

R# persistently displays a "template not resolved" error on the UIHint attribute.

I have tried deleting the R# caches; deleting the _ReSharper.Caches folder; and restarting Visual Studio. Nothing has made any difference.

An almost identical application using MVC 5.2.6 does not have this problem.

Am I missing something obvious?

(VS2017 15.9.4; R# 2018.2.3; Windows 10 1809)

2 comments
Comment actions Permalink

Hello Richard!

 

Thank you for contacting us.

ReSharper 2018.2.3 doesn't support MVC 5.2.7 version. Could you please install ReSharper 2018.3 EAP - https://www.jetbrains.com/resharper/eap/ and check if the problem is still reproduced?

Thank you.

0
Comment actions Permalink

Seems to be fixed in 2018.3 EAP, thanks.

0

Please sign in to leave a comment.