Razor intellisense not working in VS 2015

后端 未结 14 1402
南笙
南笙 2020-12-03 05:07

When I load up my VS2013 projects in 2015, all my razor views are filled with red squiggly underlines.

@model, @Scripts @url, @Html.Partial, lambda expressions

14条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-03 05:33

    This could fix similar problems (I got it from somewhere, unfortunately I cannot remember, on Github)

    • Close VS Studio
    • Run command prompt as Administrator
    • In command prompt:
      > cd "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\Common7\IDE"
      > devenv /updateconfiguration
      > devenv /clearcache
      
      I hope the above will be helpful to someone.

提交回复
热议问题