Installing Glass.Mapper.Sc

Performing the install

To install Glass.Mapper.Sc perform the following steps.

  1. Reference the following assemblies in your project:

    • Sitecore.Kernel.dll
    • System.Web.Mvc.dll

    Both these files can be found in the bin folder of your Sitecore solution. These assemblies are used to determine which version of the Glass.Mapper assemblies should be referenced. 

    For Glass.Mapper compatibility check the Compatibility Chart.


  2. Once you have added the references above to your project you can download one of the following Nuget packages:

    • Glass.Mapper.Sc - This Nuget contains the DLLs, config files and custom classes need to initialise and run Glass.Mapper.Sc. This is normally added to the Website Project.
    • Glass.Mapper.Sc.Core - This Nuget contains only the Glass.Mapper.SC DLLs. This is normally added to Class Library projects.

Verifying the install

Both Glass.Mapper.Sc or Glass.Mapper.Sc.Core Nuget packages will add the following DLL references:

V4 Reference add to Project

The  Glass.Mapper.Sc Nuget package will install  CS files and config files used to start Glass.Mapper.Sc:

Glass.Mapper.Sc V4 Files added to Project

You are now ready to start working with Glass.Mapper. Tutorial 2 will show you how to create your first model.