views:

77

answers:

2

I'm using VS2010, ASP.NET MVC 2, and ReSharper 5.0. When I create a new view that's typed off of a model from the same project as my view, ReSharper doesn't see the reference to the model.

This is the definition of my view:

<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Web.Domain.UserViewModel>" %>

Domain.UserViewModel is red, and the ReShaper tooltip to add a reference pops up. This is really annoying because I cannot use intellisense for Model and ReSharper shows numerous errors in the view.

This is strictly a ReSharper code-inspection issue. The view actually functions properly if I run the code.

If I change Web.Domain.UserViewModel to an object from another project then the red dissapears and everything is fine. Does anyone know how I can make it recognize the models from the Web project correctly?

A: 

Can you send me the project to reproduce this? Hadi at jetbrains dot com.

Thanks.

Hadi Hariri
Thanks for the offer but the update fixed it
manu08
+1  A: 

Did you try latest bug fix update, ReSharper 5.1?

derigel
No, I didn't realize it was out. I should've checked. Thanks.
manu08
Made our issues worse :(
Andrew
What exactly issues? Did you create request in http://youtrack.jetbrains.net/issues/RSRP?
derigel