We have updated our base solution which just contains a few example renderings from Sitecore 8.1 to 8.2. Note: we are still using VS 2013, but I don't think this should be any problem?
I have updated the references and I think I've tried just about everything in terms of removing and re-adding references, deleting readding and updating Nuget packages.
In my Views whenever I use Glass Mapper editable e.g.
@Editable(Model.DataItemModel, x=>x.HeaderText)
I'm getting x=>x.HeaderText
underlined with this error:
Error 4 Cannot convert lambda expression to type
'System.Linq.Expressions.Expression<System.Func<Project.Entities.HeaderSettings,object>>'
because it is not a delegate
type c:\Projects\SitecoreMVC\Code\SitecoreMVC\Project.Web\Views\Shared\_Header.cshtml
I can't figure out what has changed. Can anyone help?
/Views/Web.config
and/Areas/*/Views/Web.config
to the default/Views/Web.config
that comes with Sitecore 8.2? They should be (in most cases) identical.