-
Notifications
You must be signed in to change notification settings - Fork 299
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
.NET 5 single file fails to execute #812
Comments
Your dependency hierarchy should be as under: Microsoft.Data.SqlClient v2.1.0 |
@jjxtra Please share your csproj |
I'm using entity framework core 5.0, I suspect that is the culprit, I will try to get a minimal csproj for you |
Hi @jjxtra I've opened this request to EF Core team: dotnet/efcore#23453 |
@cheenamalhotra Thank you! I will look forward to a fix from the ef core package :) but at least right now there is a work-around by forcing Microsoft.Data.SqlClient into the project along with the sql server ef core package. To sum up, the entity framework core sql server nuget needs to reference the 2.1.0 sql client package. |
Describe the bug
A clear and concise description of what the bug is.
This error is output upon referencing Microsoft.Data.SqlClient v. 2.1.0 and trying to open a sql connection in a .net 5 single file app with embedded binaries. Issue also exists when not embedding the binaries.
To reproduce
Expected behavior
Shouldn't need a pdb to run regardless of single file or not
Further technical details
Microsoft.Data.SqlClient version: (found on the nuget or Microsoft.Data.SqlClient.dll)
.NET 5 nuget of Microsoft.Data.SqlClient 2.1.0
Windows Server 2019 x64
The latest nuget packages for Microsoft.Data.SqlClient are fouled up. They onlly have .net framework resources in them.
I copied the pdb manually to the root of my single file publish folder and then things started working.
The text was updated successfully, but these errors were encountered: