When I run the pack command on one of my projects, the resulting package doesn't contain all the dependencies I'd expect it to.
Here's an example:
- TopLevelProject has a dependency on LibraryA >= 1.0.0.0
- TopLevelProject has a dependency on LibraryB >= 2.0.0.0
- LibraryA.1.0.0.0 has a dependency on LibraryB >= 1.0.0.0
So TopLevelProject has two dependencies on LibraryB; directly on v2.0.0.0 and then indirectly on v1.0.0.0 (via LibraryA)
If you run the pack command on TopLevelProject .csproj, the resulting package will only haveone dependency, and that's on LibraryA.1.0.0.0
It's missing the direct dependency on LibraryB.2.0.0.0
How do you ensure that the correct dependency for LibraryB.2.0.0.0 is added?