Wednesday, April 11, 2012

Installing Glass

For fans of SkyRim you may know that Glass is the weapon of choice.  In the Sitecore Realm the same applies.
Glass Sitecore Mapper is an object mapping framework for mapping Sitecore items directly onto an object model allowing you to model your entire Sitecore solution as a data model. The framework handles converting data to and from fields and pulling data from related items.
Instructions to install Glass
  1. Join the Glass Google Group.  Its the place to go for support:
  2. Install Powershell 2.0 if you don't have it already.
    It is available at:
  3. Install NuGet Package Manager for Visual Studio. Available at:

  4. The following link provides detailed information on installing NuGet:

  5. Make sure you open your solution in visual studio you want to install glass on.
  6. Install Castle.Core from Nuget using "Install-Package Castle.Core"
    This is required because Glass is build upon these base classes.
  7. Install Glass from Nuget using "Install-Package Glass.Sitecore.Mapper".
    If it installs correctly go to step 9.  If not check step 8 below.
    The following link has more information on how to do this:

  8. When installing the package you may get an error like the following:
    Could not install package 'MostAwesomePackageEvar 1.0.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v3.5', but the package does not contain any assembly references that are compatible with that framework. For more information, contact the package author.
         Don't fret it just takes a manual step.
    •  Click on your project and click on the reference to Castle.Core
    • Right click and click on properties.
    • Copy the reference path.
    • Remove the reference and attempt to re-add it by pasting the path you copied but remove the filename.
           Navigate up a directory and choose the net40-client directory.  You will end up with a path ending in \packages\Castle.Core.\lib\net40-client\Castle.Core.dll
    • Redo the install in step 6
  9. Visit The Glass Google Group and Glass.Sitecore.Mapper Wiki and read up on usage.
If you have any tips, tricks or resources you would like to share with the Guild please email them to

No comments:

Post a Comment