Skip to content

Microsoft nugets version mismatched in preview versions when using EF Core SqlServer #38478

Description

@mturczyn

Bug description

In recent 5th preview version (also in 4th) of v11 of SqlServer EF Core nuget I have gotten error that EF Core tried to import Microsoft.Logging.Abstractions v11, which is correct, but project references also Microsoft.Logging.Abstractions v10.

Target Framework: net11.0

dotnet list package --include-transitive gives that
Top level packages

Microsoft.EntityFrameworkCore.SqlServer 11.0.0-preview.4.26230.115 11.0.0-preview.4.26230.115
Microsoft.EntityFrameworkCore.Tools 11.0.0-preview.4.26230.115 11.0.0-preview.4.26230.115

Transitive packages

Microsoft.Bcl.Cryptography 9.0.13
Microsoft.Data.SqlClient 7.0.0
Microsoft.Data.SqlClient.Extensions.Abstractions 1.0.0
Microsoft.Data.SqlClient.Internal.Logging 1.0.0
Microsoft.Data.SqlClient.SNI.runtime 6.0.2
Microsoft.EntityFrameworkCore 11.0.0-preview.4.26230.115
Microsoft.EntityFrameworkCore.Abstractions 11.0.0-preview.4.26230.115
Microsoft.EntityFrameworkCore.Analyzers 11.0.0-preview.4.26230.115
Microsoft.EntityFrameworkCore.Relational 11.0.0-preview.4.26230.115
Microsoft.Extensions.Caching.Memory 11.0.0-preview.4.26230.115
Microsoft.Extensions.DependencyInjection 11.0.0-preview.4.26230.115
Microsoft.Extensions.DependencyInjection.Abstractions 10.0.0
Microsoft.Extensions.Logging 11.0.0-preview.4.26230.115
Microsoft.Extensions.Logging.Abstractions 10.0.0
Microsoft.IdentityModel.Abstractions 8.16.0
Microsoft.IdentityModel.JsonWebTokens 8.16.0
Microsoft.IdentityModel.Logging 8.16.0
Microsoft.IdentityModel.Protocols 8.16.0
Microsoft.IdentityModel.Protocols.OpenIdConnect 8.16.0
Microsoft.IdentityModel.Tokens 8.16.0
Microsoft.SqlServer.Server 1.0.0
System.Configuration.ConfigurationManager 9.0.13
System.Diagnostics.EventLog 9.0.13
System.IdentityModel.Tokens.Jwt 8.16.0
System.Security.Cryptography.Pkcs 9.0.13
System.Security.Cryptography.ProtectedData 9.0.13

dotnet nuget why Microsoft.Extensions.Logging.Abstractions gives

[net11.0]
└── Microsoft.EntityFrameworkCore.SqlServer@11.0.0-preview.5.26302.115 (>= 11.0.0-preview.5.26302.115)
└── Microsoft.Data.SqlClient@7.0.0 (>= 7.0.0)
├── Microsoft.IdentityModel.JsonWebTokens@8.16.0 (>= 8.16.0)
│ └── Microsoft.IdentityModel.Tokens@8.16.0 (>= 8.16.0)
│ └── Microsoft.Extensions.Logging.Abstractions@10.0.0 (>= 10.0.0)
└── Microsoft.IdentityModel.Protocols.OpenIdConnect@8.16.0 (>= 8.16.0)
├── Microsoft.IdentityModel.Protocols@8.16.0 (>= 8.16.0)
│ └── Microsoft.IdentityModel.Tokens@8.16.0 (>= 8.16.0)
│ └── Microsoft.Extensions.Logging.Abstractions@10.0.0 (>= 10.0.0)
└── System.IdentityModel.Tokens.Jwt@8.16.0 (>= 8.16.0)
├── Microsoft.IdentityModel.JsonWebTokens@8.16.0 (>= 8.16.0)
│ └── Microsoft.IdentityModel.Tokens@8.16.0 (>= 8.16.0)
│ └── Microsoft.Extensions.Logging.Abstractions@10.0.0 (>= 10.0.0)
└── Microsoft.IdentityModel.Tokens@8.16.0 (>= 8.16.0)
└── Microsoft.Extensions.Logging.Abstractions@10.0.0 (>= 10.0.0)

Your code

Just plain project referencing prerelease version for Microsoft.EntityFrameworkCore.SqlServer

Stack traces


Verbose output


EF Core version

11.0.0-preview.5.26302.115 and 11.0.0-preview.4.26230.115

Database provider

Microsoft.EntityFrameworkCore.SqlServer

Target framework

.NET 11

Operating system

Windows 11

IDE

VS 2022

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions