Check for razor errors during build

前端 未结 3 1469
一向
一向 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:56

    Try add in mode edit of project the following assembly: System.core, according to the code:

    ...
    
    
    
    ...
    

    Sometimes this assembler not loader correctly, In My case, it worked!

提交回复
热议问题