Skip to content

Instantly share code, notes, and snippets.

Created May 18, 2016 01:45
What would you like to do?
Setup Castle Windsor for Sitecore 8.1
<?xml version="1.0"?>
<processor type="Website.SetupIoc, Website" />
using System.Web.Mvc;
using Castle.MicroKernel.Registration;
using Castle.Windsor;
using CommonServiceLocator.WindsorAdapter;
using Sitecore.Pipelines;
namespace Website
public class SetupIoc
public void Process(PipelineArgs args)
var container = new WindsorContainer();
DependencyResolver.SetResolver(new WindsorServiceLocator(container));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment