I am using VS2010, ASP.NET MVC 2 and ReSharper 5.0. When I create a new view that was printed from a model from the same project as my view, ReSharper does not see a link 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 a ReShaper tooltip for adding a link appears. This is really annoying because I cannot use intellisense for the model, and ReSharper shows numerous errors in the view.
This is strictly a ReSharper code verification issue. The view does function correctly if I run the code.
If I change Web.Domain.UserViewModel to an object from another project, then red disappears and everything is fine. Does anyone know how I can correctly recognize models from a web project?
source
share