title: How do I exclude project dependencies in ASP.NET Core?
body: <p>Inside my solution using ASP.NET Core 2.0, I have three projects: A, B and C. My desired behavior for the project dependencies is for A to depend on B, B to depend on C and C to have no dependencies.</p>
  
  <p>In ASP.NET MVC 5, this was easily achievable by setting A to reference B and B to reference C. However in Core, when a project depends on another project, it also inherits all of that project's dependencies. In this case, that means that A inherits B's dependency on C. This dependency can be seen in Visual Studio's Solution Explorer here: <img src="https://i.stack.imgur.com/lJoo7.png" alt="">.</p>
  
  <p>I want A to depend on B, but none of B's dependencies, like this: <img src="https://i.stack.imgur.com/E9QaU.png" alt="">.</p>
  
  <p>Does anyone know how to accomplish my desired behavior, either through Visual Studio or the .csproj file? Thanks!</p>