ReSharper, Razor, MVC

Is there any way to disable the MVC integration in ReSharper 5?  I'm using the Razor view engine, and my controllers are polluted with really annoying red error marks for all my "return View()" lines because it thinks I don't have a view (I do, it's a Razor view).  I'd just as soon completely disable the ASP.NET MVC integration.  Is this possible?

3 comments
Comment actions Permalink

Kirk Woll wrote:

Is there any way to disable the MVC integration in ReSharper 5?  I'm using the Razor view engine, and my controllers are polluted with really annoying red error marks for all my "return View()" lines because it thinks I don't have a view (I do, it's a Razor view).  I'd just as soon completely disable the ASP.NET MVC integration.  Is this possible?


Yep, it's possible.
Look at ReSharper->Options->ASP.NET->Other->Enable ASP.NET MVC References.
You can also try ReSharper 6.0 EAP builds, it recognizes Razor view references.
Latest builds will also parse views themself.

0
Comment actions Permalink

Stupid me, it was right there in Options | ASP.NET | Other | Enable ASP.NET MVC References

0
Comment actions Permalink

Thanks for the response, I didn't know the latest EAPs support it.  I'll give it a try.

0

Please sign in to leave a comment.