-
|
Here's how I reference Microsoft.EntityFrameworkCore: While the latest version is Here's the output of Should not the direct dependency on |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
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 Include="Microsoft.EntityFrameworkCore" />The corresponding If you do not want to have to specify an explicit Another note is that floating versions are not allowed in CPM by default either, but can be enabled if needed. https://learn.microsoft.com/nuget/reference/errors-and-warnings/nu1011 |
Beta Was this translation helpful? Give feedback.




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:The corresponding
<PackageVersion />item would then specify the version.If you do not want to have to specify an explicit
Pack…