Visual Studio 2013 IntelliSense stops working for ASP.NET MVC5 Controllers

后端 未结 26 1787
闹比i
闹比i 2020-11-29 18:42

I am facing a weird problem in my Visual Studio 2013 ASP.NET MVC 5 project. All of a sudden, the IntelliSense in the Controller classes of the MVC 5 project are not working

相关标签:
26条回答
  • 2020-11-29 19:32

    I have found one way to solve the problem. That is, 1. -> Remove the ASP.NET MVC Project from Solution, 2. -> Then, add the MVC Project back to the Solution.

    By doing these steps, I can get the Intellisense again. But, I am not happy with this solution though, because, next time when I double click the Solution file to open the solution, I see the intellisense is not working again. I would like to know the real reason why it is behaving like that.

    EDIT:

    Finally, I figured out that it was a 3rd party visual studio extension which was causing the problem. In order to find out that extension, I removed all extensions and then, added the extensions one by one and stopped where I found the culprit extension that was taking my sleep away :).

    0 讨论(0)
  • 2020-11-29 19:34

    So far some these solutions have not worked for me.

    I have the following Workaround

    Simply declare the type you want to use explicitly in a new variable and use that instead of Model.

    @model MyModel
    MyModel mymodel = Model;
    
    @mymodel.MyIntelisenseIsWorkingAgain
    
    0 讨论(0)
提交回复
热议问题