Getting MVC 3 Razor View Intellisense to work with Visual Studio 2013

I faced the same problem as here. Basically the MVC3 razor (cshtml) intellisense view does not work with VS 2013. The reason this thread is because MVC3 is not supported in VS 2013. Now I have a third party library (dll) that I cannot update up to MVC4 or MVC5 at no additional cost. I doubt the MVC3 version of the library I'm currently using will work correctly with MVC4 if I upgrade my VS 2013 project to MVC4 for intellisense.

Going back to my question, is there a way to get the VS 2013 intellisense firewall view working on MVC3. Apart from intellisense, there are no problems and the project compiles and runs without any problem.

EDIT

As you can see from the snapshot below, intellisense works for some operators like @ Html.Label (..) but not for @ Html.DisplayFor (..) , Html.TextAreaFor (..) and others.enter image description here

+3


source to share


1 answer


Add these two lines inside each view:

@inherits System.Web.Mvc.WebViewPage<dynamic>
@using System.Web.Mvc.Html

      



Instead, dynamic

enter your type name.

+4


source







All Articles