I have a solution structure like in Ports And Adapters Architecture or Onion Architecture. My composition root (a web application in this case) and infrastructure libraries only reference the core library.
I can also load infrastructure libraries at runtime using Castle Windsor. However I do not reference these libraries on my composition root so their build output is not copied to the output folder. I guess I need a custom build step but I don't know how I can accomplish this.