Installing Glass Mapper for Sitecore

Xing Liu • 11/7/2014

In order to use Glass Mapper in Visual Studio, make sure you install the following packages in the NuGet manager.  (MVC 5 & Visual Studio 2013)

  • Glass.Mapper
  • Glass.Mapper.Sc
  • Glass.Mapper.Sc.CastleWindsor
  • Glass.Mapper.Sc.Mvc-5
  • Glass.Mapper.Sc.Razor

Installing Glass Mapper

After the installation, you will notice the Glass Mapper creates a data folder with lots of new file references in the project file.  In some cases, you need to remove those file references in your project file to optimize the project performance, or your project will open very slowly. There are two file references in the project file you can keep:

<ItemGroup>
     <Content Include="data\Packages\Glass.Mapper.Sc.Razor.Package.xml" />
     <Content Include="data\Packages\Glass.Mapper.Sc.Razor.Package.zip" />
</ItemGroup>

Xing Liu

Xing Liu is a Sitecore MVP with expertise in all aspects of ASP.NET and SQL Server development across a variety of industries including Government, Banking, Healthcare and Energy. He provides technical thought leadership and consulting to SymSoft and client development teams. Xing has deep expertise in using Sitecore Helix in an Agile delivery model to streamline the construction of complex Sitecore websites, portals and their associated authoring environments. Xing is also a globally recognized photographer with an Instagram following approaching 100,000.

Explore topics:

Other Blog Posts from Xing Liu