Problem with razor syntax in VS 2012
Hi!
Today something wierd has happened with my Visual studio and Project, for example this line of code:
<h2 @Html.EditAttributes(x => x.TeaserHeading)>@Model.TeaserHeading</h2>
In the editor, these bad things happen:
* I get a red underline on the lambda expression stating "cannot convert lambda expression to type string because it is not a delegate expression
* when Writing the lambda, typing x is not valid, and the editor tries to find a class or type that starts with x. Very annoying.
*I get no IntelliSense when writing code to the model... but @Html. works fine, but not @Model.
Whats going on, something seems to be broken :(
/H