MVC Razor view Intellisense broken in VS 2013/2015/2017

后端 未结 22 2307
失恋的感觉
失恋的感觉 2020-11-27 16:52

I have an existing project written in VS2010 which when loaded in VS2010 works perfectly.

When I load this same project in VS2013 the MVC Razor views contain lots of

22条回答
  •  爱一瞬间的悲伤
    2020-11-27 17:42

    In my case I moved all of the views from an Area to the root Views folder, so I think VS got confused as to where my web.config was. I renamed it to Web.config, from web.config and then made an edit to the contents of the config (such as changing the version number of the razor host factory dll from 5.2.2.0 to 5.2.3), but then changed it back.

    Then I went on a walk for about 30 minutes and came back and restarted VS and it was fixed!

提交回复
热议问题