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

前端 未结 6 730
攒了一身酷
攒了一身酷 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:55

    Went through the same agony, and was working without intellisense in views for about 3 weeks. Then I finally found it. It started working when I switched webpages setting to version 3 in web.config.

    So in my web.config this was version 2.0.0.0, after i updated to 3.0.0.0 it started to work

      
        
         ...
    
    

    Hopfully this was your issue to and will help becouse I feel your pain :)

    --------------------------------------------------------

    UPDATE: For others who are still looking for a fix for this issues in a post-MVC5 update, this helped me: In the ~/Views/web.config, updating from MVC 5.2.2.0 to 5.2.3.0 using Nuget did not update this line:

    
    

    Updating 5.2.2.0 to 5.2.3.0 brought Intellisense back to life. You may have to close the view and re-open it to get the Intellisense to load.

提交回复
热议问题