title: ASP.NET 5.0 find controllers on another assembly
body: <p>My company will develop several services using ASP.NET 5. These services will provide both REST and gRPC APIs. Different teams will be developing them.</p>
  <p>To increase developer productivity and to have a consistent HTTP pipeline we want to provide a NuGet package that will configure this HTTP pipeline (only the middlewares we want and in the correct order), configure logging (Serilog) and configuration (Azure App Configuration), and provide other helpers as well.</p>
  <p>In order to do that I have created a library where we create the ASP.NET host with a standard startup class. Then I have created a sample ASP.NET 5 consuming this library via NuGet and started the application. The HTTP pipeline works correctly, but the controllers I have defined in the service assembly (not the library) are not found.</p>
  <p>Does anyone know whats is the logic ASP.NET 5 uses to find the controllers? I did some research and tried some fixes, but none of them solved my issue.</p>
  <p>Thanks for any help.</p>