Visual Studio 2015 Broken Razor Intellisense

后端 未结 17 1190
陌清茗
陌清茗 2020-11-28 02:04

After installing and then repairing my VS2015 instance I still cannot get intellisense (server side) to work in my MVC views. I get alerted by message promp

17条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-28 02:38

    I've posted this answer on another SO question, just because I want to prevent people wasting the time I've just wasted. My problem was that I'd added files to a project, but not included them. So I chosen to show all files:

    then chose to include folders:

    The problem only shows up when you open an MVC website as a project, and not when you open it as a website directly.

提交回复
热议问题