No Intellisense in views updating from ASP.NET MVC 4 to MVC 5

前端 未结 6 804
攒了一身酷
攒了一身酷 2021-02-01 16:19

I just updated an mvc4 project (using vs2012) to mvc5. After having a lot of issues related to dependencies, I finally found this tutorial and straightened things up so that it

6条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-01 16:52

    None of the previous solutions worked for me. I'm using VS 2012 and MVC 5. This is what I did to make it work:

    1. I installed Web Tools 2013 as explained in the following link: http://blogs.msdn.com/b/webdev/archive/2013/11/18/announcing-release-of-asp-net-and-web-tools-2013-1-for-visual-studio-2012.aspx
    2. I checked /web.config and /Views/web.config and fixed some version issues. In my case I have MVC 5.2 so it was important to do a correct MVC biding like this:

    Also, it's important to mark this:

    
    

提交回复
热议问题