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

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

    I too have the same issue with Intellisense in my Text editor.

    i just close example.cs file which is not providing Intellisense and reopen that class without restart Visual Studio it works for me.

    Note : i don't have the same issue with all the .CS file in Solution Explorer

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

    I know I'm a bit late, but adding this to my App.config file did the trick!

    <system.web>
        <compilation>
            <assemblies>
                <add assembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
            </assemblies>
        </compilation>
    </system.web>
    
    0 讨论(0)
  • 2020-11-29 19:23

    I get this exact same thing every time I work with one particular MVC5 project. Restarting VS2013 does not work. Deleting suo files does not work. Resetting all tools settings does not work. The only thing that ever works is removing the project from the solution and adding it again. Seeing as I have to do this every day is is really quite annoying. Especially when I have it set to reopen the last files I had open, I then need to track down the ones I was working on and re-open them instead of the popping up automagically..

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

    To solve this I closed Visual Studio Express 2013 and I reopened the Solution but double clicking on its .sln file directly from the file system. Opening it from the Start Page had my controllers intellisense broken.

    0 讨论(0)
  • 2020-11-29 19:25
    • Tools -> Options
    • Text Editor -> C# -> Intellisense
    • Ensure "Show completion list after a character is typed" is checked

    VS2013 intellisense code completion

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

    Rushonerok's solution works great for me.
    For anyone who doesn't know: <ProjectName>.v12.suo is a hidden file in project root folder. You must set on "Show hidden files" in your file browser to see it.

    0 讨论(0)
提交回复
热议问题