-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Microsoft.Data.SqlClient v 5.2.0: NET 8.0 assembly in NET 6.0 dll? #2535
Comments
Before we can begin investigation, could you please provide a step how to reproduce the issue, what is the environment operating system and also provide a sample reproduction program, please? Have you tried deleting the nuget package cache for .Net 6.0? |
This seems to be the case with the current version (5.2.1) too. To reproduce the issue:
The environment shouldn't matter, because the issue is the package, however as general info, tested with:
|
Hi @Thorium, can you add a {
"sdk": {
"version": "<version goes here. such as 6.0.300",
}
} |
The issue is Microsoft.Data.SqlClient NuGet package: The package has multiple dlls in libs-folder, for different target frameworks, e.g. net6.0 and net8.0. But why is there .Net 8 dll in net6.0 folder? If net6.0 is not supported by Microsoft.Data.SqlClient, then fine, just remove the libs/net6.0 path from the Nuget package (and from target frameworks). |
The issue was coming from the fact that .AssemblyAttributes was put in netcore folder under path of Thanks for catching this @Thorium. I will send you package from a build of our CI pipeline to confirm that the fix has worked. |
@Thorium can you test below unofficial package to see if that has issue addressed in it. |
Yes, this package has it correct. |
Closing as PR to fix this has been merged |
Having the same issue with .net8 and azure-functions on the azure portal. |
@Miloky what version of M.D.SqlClient are you using? |
@JRahnama tried different versions: |
5.2.2 ?? |
5.2.0, and 5.1.3 are problamtic ones, try testing with 5.1.6 and 5.2.2. I will check 6.0.0-preview1.24240.8 |
Also, making a repro is same as the one provided in original issue? |
@Miloky The original issue has been addressed, confirmed as working, and backported to version 5.2.2. If your issue is different from this one, please open a new GitHub issue with detailed steps to reproduce it. Thank you! |
I was debugging a few hours why I get weird "Microsoft.Data.SqlClient is not supported on this platform."
There is something fishy going on with the v5.2.0:
The text was updated successfully, but these errors were encountered: