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 5.2.3.0
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 4.3.4.196
.
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 Glass.Mapper.Sc.Mvc.dll
references Sitecore.Mvc, Version=1.0.0.0
and Sitecore.Kernel, Version=8.1.0.0
. There doesn't appear to be anything I can do to fix this as there isn't a version that references Sitecore.Mvc, Version=1.1.0.0
and Sitecore.Kernel, Version=10.0.0.0
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 Editable
:
Error CS0012 The type 'Expression<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Core, Version=4.0.0.0, 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!
Sitecore.Kernel
andSitecore.Mvc
before you added the Nuget package to them?