Skip to content
Discussion options

You must be logged in to vote

It looks like you're using Central Package Management (CPM) which does not set the versions for transitive package references by default.

NuGet reads the <PackageReference /> items as direct dependencies and selects the versions that you specify. For each child dependency, it reads that package to get the list of its dependencies. To override the package version of a transitive package reference, you must specify an explicit package reference to it. In this case, adding this to the project should work:

<PackageReference Include="Microsoft.EntityFrameworkCore" />

The corresponding <PackageVersion /> item would then specify the version.

If you do not want to have to specify an explicit Pack…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@voroninp
Comment options

@jeffkl
Comment options

jeffkl Mar 18, 2025
Collaborator

@voroninp
Comment options

@voroninp
Comment options

Answer selected by jeffkl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants