-
Notifications
You must be signed in to change notification settings - Fork 288
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 DLL not being created #2024
Comments
Please share your .csproj file |
Hello, I added the csproj file to the original post. |
Do you really think that this sort of attitude is helpful? It's likely that they're working on this issues. If you really don't think they are then how about you work on fixing it yourself and contribute? |
The attitude is accurate when it comes to Microsoft from experience. The original issues I referenced are years old. I can't even begin to tell you how many Visual Studio bugs are filed, with video evidence of it happening, but they close it because they can't reproduce it on their personal computer. |
Have you tried to reference the MDS package directly from your Web app then??? |
Hello, Yes that works. But I shouldn't need to do that because the SqlClient is a dependency of a referenced project, and should automatically be built and included. So this is a bug of some kind somewhere. |
Sure, but it is a workaround none the less |
Sure, and I'll do that for now. But this issue needs to be fixed. |
Based on this old SO post https://stackoverflow.com/questions/19478775/add-native-files-from-nuget-package-to-project-output-directory it looks like the targets file in the |
@Wraith2 I will look at it. I spend the entire morning checking that target file. Thanks. |
I am sure there are many issues that "need to be fixed" - regardless, the information you so kindly provided is a good help in root causing the issue. |
@Aashishkebab , Just to be quicker, can you provide a simple repro that I can test with the set of changes I have on hand? Or at least give me a step-by-step explanation on how to repro the issue in your case. I know there are several other issues, I am just testing to see if the issue is fixable for all existing scenarios. |
|
Hello, I don't want to create even more mess here, but I didn't know which issue to put is in. I haven't seen this solution anywhere before and it may be useful for future readers. So in our case it helped to move from |
We use Azure, and continuous integration doesn't even work because it uses an outdated version of MSBuild. As I said before, typical Microsoft. |
Pretty sure you can pick MSBuild version https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/vsbuild-v1?view=azure-pipelines#inputs. |
Our issue occurs both locally and on cloud. We figured out that we need to add a reference to the project even though the dependency already has a reference. So clearly a bug. |
I am not sure if this has been mentioned or if you found a resolution to your issues but this workaround works for me on our Azure Buildpipeline: #936 (comment) |
@ErikEJ Who is @kf-gonzalez and why did they have permission to close this issue? Nothing appears resolved here and they left no comments. |
This comment has been minimized.
This comment has been minimized.
@jzabroski Former team member, "Have you tried to reference the MDS package directly from your Web app then???" is a simple workaround. If you have issues with this, maybe create a new issue? |
That solution unfortunately doesn't work for me. I created a new issue here #2998 |
Describe the bug
Similar issues have been described in #1318 and #745. As usual, Microsoft seems to be ignoring it.
The DLL files are not being copied into the bin, and thus I am getting runtime errors from a missing DLL.
I am trying to run this an Azure Cloud. This is neither working on Azure Cloud nor locally on my local PC.
To reproduce
Simply create an ASP.NET 4.8 project and add Microsoft.Data.SqlClient (currently 5.1.1) and Microsoft.Data.SqlClient.SNI (currently 5.1.0) using NuGet package manager.
Expected behavior
The DLLs to be copied to their proper folders so there aren't runtime errors and I can connect to my database.
Further technical details
Microsoft.Data.SqlClient version: (found on the nuget or Microsoft.Data.SqlClient.dll)
.NET Framework 4.8.0
Operating system: Windows 11
csproj file
The text was updated successfully, but these errors were encountered: