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 has 5 years of experience with developing web solutions using ASP.NET and SQL Server. For the past 3 years, he has been actively engaged in website development projects using Sitecore CMS. He enjoys creating web solutions for clients using Sitecore CMS and, using its flexibility, provides cohesive and integrated solutions. Xing is a Sitecore Technology MVP, 2016.

Explore topics:

Other Blog Posts from Xing Liu



Subscribe for insights, trends and big ideas