What packages do I need to install in order to setup Glass.Mapper for Sitecore 8.1 with VS2013 and MVC 5.2.3.0 using NuGet? I already have Castle.Windsor.
I tried Glass.Mapper.Sc on its own, tried BoC.Glass.Mapper.Sc.Mvc-5 on its own, and tried both of them together I always get run time errors when opening the content editor in Sitecore UI:
Method not found: '!!0 Glass.Mapper.Context.GetTypeConfiguration(System.Type, Boolean, Boolean)'.
Plus which of them do I need for other solution projects?
Update1: I had to go the sitecore bin folder to remove all Glass.Mapper related DLLs (from previous package installation attempts) and then installed Glass.Mapper.Sc again. Now I can open the Content Editor, however I got an error while publishing:
Could not resolve type name: Glass.Mapper.Sc.ContentSearch.LuceneProvider.GlassDocumentMapperObjectFactory, Glass.Mapper.Sc.ContentSearch.LuceneProvider (method: Sitecore.Configuration.Factory.CreateFromTypeName(XmlNode configNode, String[] parameters, Boolean assert)).
So I installed Glass.Mapper.Sc.ContentSearch.LuceneProvider
but then I got another error related to Glass.Mapper's version of Castle.Windsor, so I installed Glass.Mapper.Sc.CastleWindsor
.
Now when I click on publish, I get the following:
Could not resolve type name: Glass.Mapper.Sc.Events.PublishEnd.GlassCacheClear, Glass.Mapper.Sc (method: Sitecore.Configuration.Factory.CreateFromTypeName(XmlNode configNode, String[] parameters, Boolean assert)).
We are using on same environment like you GlassMapper 4.0.5.54. You don't need to use Boc.Glass.Mapper.Sc.Mvc
On packages.config we have
<package id="Glass.Mapper.Sc" version="4.0.5.54" targetFramework="net45" />
To install a specif version you can use command line:
Install-Package CGlass.Mapper.Sc -Version 4.0.5.54