You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current version of Microsoft.Data.SqlClient has an (indirect) reference on a deprecated NuGet package:
Microsoft.Data.SqlClient 5.1.1 (latest) -> System.Security.Cryptography.Cng 5.0.0 (latest) -> System.Formats.Asn1 5.0.0 (old, deprecated)
To reproduce
Create a new .NET 7 project.
Add a reference to Microsoft.Data.SqlClient
Run dotnet list package --include-transitive --deprecated
The output shows deprecated package System.Formats.Asn1 5.0.0
Expected behavior
No deprecated package should be found.
Further technical details
Microsoft.Data.SqlClient version: 5.1.1
.NET target: .NET 7
SQL Server version: not relevant
Operating system: not relevant
Additional context
Since this is not a direct dependency, and the version of the direct dependency is already the latest version, this can't be fixed by just increasing a version number. It looks like the package System.Security.Cryptography.Cng shouldn't be referenced any more. See dotnet/runtime#51853.
Describe the bug
The current version of
Microsoft.Data.SqlClienthas an (indirect) reference on a deprecated NuGet package:Microsoft.Data.SqlClient 5.1.1 (latest) -> System.Security.Cryptography.Cng 5.0.0 (latest) -> System.Formats.Asn1 5.0.0 (old, deprecated)
To reproduce
Microsoft.Data.SqlClientdotnet list package --include-transitive --deprecatedThe output shows deprecated package
System.Formats.Asn15.0.0Expected behavior
No deprecated package should be found.
Further technical details
Microsoft.Data.SqlClient version: 5.1.1
.NET target: .NET 7
SQL Server version: not relevant
Operating system: not relevant
Additional context
Since this is not a direct dependency, and the version of the direct dependency is already the latest version, this can't be fixed by just increasing a version number. It looks like the package
System.Security.Cryptography.Cngshouldn't be referenced any more. See dotnet/runtime#51853.