title: Castle.Windsor doesn't run installers using FromAssembly.InThisApplication unless the assembly is referenced in code
body: <p>I've got 2 projects, one is a MVC site, the other a class library. The MVC site references the class library.  </p>
  
  <p>I have an implementation of <code>IWindsorInstaller</code> in the MVC site and the class library.  There is no code in the MVC site that directly references any classes defined in the class library, they are all implementations of interfaces defined elsewhere.</p>
  
  <p>In the MVC site, in app start I'm doing the usual</p>
  
  <pre><code>var container = new Castle.Windsor.WindsorContainer();
  container.Install(FromAssembly.InThisApplication());
  </code></pre>
  
  <p>This does not call the installer in the class library.  However if I do this</p>
  
  <pre><code>container.Install(FromAssembly.Containing&lt;ClassFromTheClassLibrary&gt;());
  </code></pre>
  
  <p>The installer gets called twice.  It seems that Castle requires an actual in-code reference to the other assembly for the <code>InThisApplication</code> to pick it up.  I can fix this by just doing this:</p>
  
  <pre><code>container.Install(FromAssembly.This());
  container.Install(FromAssembly.Containing&lt;ClassFromTheClassLibrary&gt;());
  </code></pre>
  
  <p>but I was hoping to not have to reference the other assembly directly.</p>
  
  <p><em>Update</em> The namespaces are: </p>
  
  <ul>
  <li>MVC app is MyApp.OnlineProducts.Service </li>
  <li>class library is MyApp.Individuals.Service</li>
  </ul>