title: How to use Castle Windsor with multiple projects in a solution
body: <p>I have one solution which has two projects: <em>MVC</em> and <em>Business</em></p>
  
  <p>From <a href="https://stackoverflow.com/questions/6244416/castle-windsor-register-components-across-multiple-projects-in-solution">Castle Windsor: Register components across multiple projects in solution</a> I could tell that all plumbing should be in the MVC layer, so I created an IoC container (in MVC) as such:</p>
  
  <pre><code>public static class IocContainer
  {
      private static IWindsorContainer _container;
  
      public static void Setup()
      {
          _container = new WindsorContainer().Install(FromAssembly.This());
      }
  
      public static T Resolve&lt;T&gt;()
      {
          return _container.Resolve&lt;T&gt;();
      }
  }
  </code></pre>
  
  <p>I also created an installer in the MVC project:</p>
  
  <pre><code>public class BusinessLogicInstaller : IWindsorInstaller
  {
      public void Install(IWindsorContainer container, IConfigurationStore store)
      {
          container.Register(Component.For&lt;IBusinessFacade&gt;()
              .ImplementedBy&lt;BusinessFacade&gt;()
              .LifestylePerWebRequest());
      }
  }
  </code></pre>
  
  <p>Since the intaller knows about the concrete BusinessFacade type, MVC depends on the Business layer (where the BusinessFacade class resides).</p>
  
  <p>Because i also want to use DI in the business layer, how would I access the IoC container from Business project, without creating a cyclic dependency with MVC and Business ?  </p>