Reputation: 9723
I have a problem with projects that depend on NuGet packages that they do not consume, or indirectly require dependencies, here is the project structure:
- Data -> Depends on Entity Framework
- Business
- UI
The problem here is that because Data
has a dependency to Entity Framework, this means that the Business
layer and also the UI
must also install this in their projects.
How can I separate these dependencies so that only the Data
layer requires Entity Framework?
Upvotes: 2
Views: 511
Reputation: 1691
This shouldn't be the case. Make sure of the follow points:
Upvotes: 2