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
{{ message }}
Repository navigation
Does it make sense to package the net46 Microsoft.Data.SqlClient.dll inside both the lib and runtimes directories? #903
I have noticed that both microsoft.data.sqlclient\2.1.1\lib\net46\Microsoft.Data.SqlClient.dll and microsoft.data.sqlclient\2.1.1\runtimes\win\lib\net46\Microsoft.Data.SqlClient.dll are absolutely identical files (their associated pdb files are also identical).
I think it doesn't make sense to have these file duplicated in the NuGet package. According to the Architecture-specific folders documentation, if the dll does not exist in the runtimes directory, then the one from the lib directory is used. At least, this is my understanding of this sentence:
Please note, NuGet always picks these compile or runtime assets from one folder so if there are some compatible assets from /ref then /lib will be ignored to add compile-time assemblies. Similarly, if there are some compatible assets from /runtimes then also /lib will be ignored for runtime.
Not applicable (packaging/build design question, no repro required)
Area
Area\Engineering
Duplicates
Related: #4461, #3898 (both touch on lib/ vs runtimes/ asset resolution confusion, not exact duplicates of this packaging question)
Regression
Not indicated
Analysis
This issue questions whether shipping an identical net46Microsoft.Data.SqlClient.dll in both the lib/net46 and runtimes/win/lib/net46 NuGet folders is redundant, since NuGet falls back to /lib when no matching /runtimes asset exists. This is a packaging/build design concern (not a functional bug), affecting NuGet package size and clarity rather than runtime behavior. There is already an open pull request, #4673 ("Remove RID-specific SqlClient DLLs"), linked via closed_by_pull_requests that appears to address exactly this issue. Severity: P3 (low-impact packaging cleanup with an existing fix candidate).
No further environment/repro information is needed from the reporter since this is a design/packaging question, not a runtime bug.
Note: This triage summary is auto-generated by an AI agent. The analysis and suggestions above have not been verified by a human maintainer. Please treat as preliminary guidance only.
Activity
cheenamalhotra commentedon Feb 10, 2021
Thanks for linking related issues.
We'll consider reviewing this again once we get a clear image if we can omit
runtimes\**\net46DLLs.Our design came from System.Data.SqlClient NuGet and hence things were carried forward.
But we can always review and revalidate!
priyankatiwari08 commentedon Sep 17, 2026
/triage
github-actions commentedon Sep 17, 2026
🔍 Triage Summary (on-demand re-triage)
Area\Engineeringlib/vsruntimes/asset resolution confusion, not exact duplicates of this packaging question)Analysis
This issue questions whether shipping an identical
net46Microsoft.Data.SqlClient.dllin both thelib/net46andruntimes/win/lib/net46NuGet folders is redundant, since NuGet falls back to/libwhen no matching/runtimesasset exists. This is a packaging/build design concern (not a functional bug), affecting NuGet package size and clarity rather than runtime behavior. There is already an open pull request, #4673 ("Remove RID-specific SqlClient DLLs"), linked viaclosed_by_pull_requeststhat appears to address exactly this issue. Severity: P3 (low-impact packaging cleanup with an existing fix candidate).Next Steps
lib//runtimes/asset resolution confusion that may inform the final packaging approach in Remove RID-specific SqlClient DLLs #4673.