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

后端 未结 26 2019
闹比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: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
    

提交回复
热议问题