Priority
Critical
Type
Bug 
State
Fixed 
Assignee
Sergey Coox 
Subsystem
No subsystem 
Affected versions
Fixed in
Fixed in build
5.0.1612.107  
Build
943
Fixed in build
1548
  • Submitted by   Will Shaver
    11 months ago (19 Feb 2009 21:44)
  • Updated by Will Shaver
    2 months ago (04 Dec 2009 16:41)
  • Jira: RSRP-96241
    (history, comments)

RSRP-96241

Mvc Views Should Not Need Fully Qualified Inherits Types

4
Added by <no user>
08 Feb 2010
errors.png   (12 KB)

Also attempted on 4.5.1175.29

Using VS MVC RC1 Refresh, Visual studio 2008.

A page directive on the top of an .aspx with no codebehind such as this:
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="BaseView<Customer>" %>

Fails to work by highlighting function calls as errors, and does not recommend an import of the type. When the namespace is placed in the Web.config this page will then render just fine, but it isn't until the inherited type is fully qualified in the page directive that R# works:

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="Core.Util.Mvc.BaseView<Customer>" %>

This caused me quite a bit of grief as I didn't realize I needed to fully qualify the name. The only code hint that R# offered before I fully qualified it was [Change all
'BaseView'] which wasn't so helpful.








Issue was closed
Comments (0)
 
History (0)
 
Links
 
Issue has no comments