title: Ioc/DI - Why do I have to reference all layers/assemblies in application's entry point?
body: <p>(Related to this question, <a href="https://stackoverflow.com/questions/9500642/ef4-mvc3-with-windsor-castle-ioc-di-navigation-properties-not-loading">EF4: Why does proxy creation have to be enabled when lazy loading is enabled?</a>).</p>
  
  <p>I'm new to DI, so bear with me. I understand that the container is in charge of instantiating all of my registered types but in order to do so it requires a reference to all of the DLLs in my solution and their references.</p>
  
  <p>If I weren't using a DI container, I wouldn't have to reference the EntityFramework library in my MVC3 app, only my business layer, which would reference my DAL/Repo layer. </p>
  
  <p>I know that at the end of the day all DLLs are included in the bin folder but my problem is having to reference it explicitly via "add reference" in VS in order to be able to publish a WAP with all necessary files.</p>