Razor/JavaScript and trailing semicolon

前端 未结 7 1033
不知归路
不知归路 2020-12-01 11:30

Using Visual Studio 2012, on a Razor view page, in the JavaScript section, I am getting what I think is a battle between Razor syntax vs JavaScript syntax. In particular, th

7条回答
  •  时光说笑
    2020-12-01 12:16

    Is this a bug in Razor?

    Absolutely not. Run your application, and it will work as expected.

    It is a bug in the tools you are using (Visual Studio 2012, ReSharper, ...) that are incapable of recognizing perfectly valid syntax and warning you about something that you shouldn't be warned about. You could try opening an issue on the Microsoft Connect site and signalling this bug if that hasn't already been done.

提交回复
热议问题