I'm having a lot of trouble getting our solution working in VS 2015 using the latest version of Glass.
As suggested previously I have checked all projects and they now all have consistent DLL version references.
System.Web.Mvc is version
Target framework is version
4.5.2 in all projects and in web.config
I've completed removed all existing Glass references and then used NuGet to add
Glass.Mapper.Sc latest version
I have got rid of all my other problems and build warnings, but I do still get this:
Warning Found conflicts between different versions of the same dependent assembly that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. Domain C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets 1820
Checking the output log I see the warnings are caused by
Glass.Mapper.Sc.Mvc.dll. When I check the build output I can see that
Sitecore.Mvc, Version=220.127.116.11 and
Sitecore.Kernel, Version=18.104.22.168. There doesn't appear to be anything I can do to fix this as there isn't a version that references
Sitecore.Mvc, Version=22.214.171.124 and
Could this be causing issues or should I ignore these warnings?
The issue I am facing in my cshtml files is an Intellisense error whenever I use
GlassView methods such as
Error CS0012 The type 'Expression<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Core, Version=126.96.36.199, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
Yes, I have added a reference to
System.Core but it doesn't help. My solution still works when I build and deploy to IIS!