Is the following markup incorrect, or is it a bug in the Razor engine in MVC4? Either way, what's the best workaround?
The entire content of View1.cshtml is shown. It compiles fine, but the Intellisense error highlighting is annoying. (Included as an image so you can see how the syntax is rejected by VS11.)
Hote that the @:
syntax (instead of <text></text>
) isn't accepted either.
<script>
. I just got over it. – GSerg May 5 '12 at 10:48