Check for razor errors during build

前端 未结 3 1467
一向
一向 2020-12-04 17:30

Is there a way for Visual Studio (I\'m using 2010) to find errors within razor views during builds, in the same way as other code in a C# project would?

It\'s just a

3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-04 17:49

    Try setting MVCBuildViews to true in your project file (i.e. edit your csproj file)

     true
    

提交回复
热议问题