Limited Intelliesense in VS2013 on MVC3 project

江枫思渺然 提交于 2019-11-30 17:14:28

Found this here ...

Soon you will see a new version of MVC5 in VS2013. MVC5 will be incorporated in VS2013. MVC3 will not be supported in VS2013. I confirmed it on channel9 last time. So People who have installed only VS2013 or doesn’t have old version will be got trouble with the project that is still in MVC3. This error happen because MVC4 and 5 installation doesn’t contain the DLL that is used in Version 3 of ASP.NET MVC.

http://geekswithblogs.net/anirugu/archive/2013/10/16/how-to-migrate-asp.net-mvc-3--mvc4-project-to.aspx

Ended up upgrading the project to MVC 5 ... Created a new project and brought over all the contents of my model, view and controller folders. Also had to update the webconfig to include some packages I had installed in the previous project.

Add these two lines inside each view:

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

and the intellisense will work again for MVC3 in VS2013

You can try Unload the project from solution explorer and Reload it again. See if you can get your intellisense back. It worked for me.

1- From tools select Nuget package manager console 2- download system.web.mvc 3 using this PM> Install-Package Microsoft.AspNet.Mvc -Version 3.0.20105.1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!