|
-
Mar 21st, 2013, 02:53 AM
#1
Thread Starter
Frenzied Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|