Razor intellisense not working in VS 2015

后端 未结 14 1403
南笙
南笙 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:32

    I know that this topic is out of date, but I've just overcome the same problem and my resolution is not related to any one of the listed here.

    The issue is that in my project properties the parameter "Output path" (Build->Output) was a folder different from just "bin\". After changing it to bin\, reopening the Studio and rebuilding my project, everything worked out!

    Hopefully, it might help someone.

提交回复
热议问题