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
VSTO for Outlook and the known issue of the 3 **Microsoft.Data.SqlClient.SNI.xxx.dll** #2480
This concerns the publish of a VSTO for Outlook and the known issue of the 3 Microsoft.Data.SqlClient.SNI.xxx.dll files that are not included in the deployment folder as Microsoft.Data.SqlClient.SNI.xxx.dll.deploy files.
Our environment is Visual Studio 2017 in dotnet 4.6.2, so we've just changed the use of the system.data.sqlclient component to microsoft.data.sqlclient Nuget. This is a substantial application that we'll have to maintain in .NET Framework 4.x and, for various reasons, still under VS 2017 (but we plan to transport it to VS 2022 asap).
To reproduce
Create a VSTO project under VS 2017
Reference Nuget Microsoft.Data.SqlClient
Standard publish
Observe the publish folder :
Expected behavior
Of course the files are copied to the deployment folder :-)
Further technical details
Microsoft.Data.SqlClient version: 5.2.0
Visual Studio 2017
.NET target: Framework 4.6.2
Operating system: Windows 10
Not indicated — this is a longstanding known limitation, not a regression
Analysis
This issue is a known packaging/deployment problem: the native Microsoft.Data.SqlClient.SNI.{x86,x64,arm64}.dll files ship without a .deploy extension, so VS 2017 ClickOnce/VSTO publish does not include them in the publish manifest, causing the app to fail at the customer machine due to the missing native SNI binary. This is already tracked as a sub-issue of the parent epic #4129 ("SNI loading issues") and is functionally the same root cause reported in #766 (VSTO Add-ins + ClickOnce). Severity is P2 — there is a documented workaround (manually adding .deploy copies via csproj target), but it is a recurring pain point for .NET Framework/ClickOnce/VSTO consumers and affects a widening cross-section of legacy deployment models.
If a fix is pursued, it likely needs to happen either in the Microsoft.Data.SqlClient.SNI NuGet package's build/targets file (auto-generating .deploy copies or content items recognized by ClickOnce), or via updated official guidance/documentation pointing users to the MSBuild workaround already found by the reporter (adding a build target that copies the SNI DLLs as .deploy files into $(PublishDir)).
Consider assigning to Copilot coding agent to investigate whether Microsoft.Data.SqlClient.SNI.targets/.props can be updated so ClickOnce-based publish (VSTO, WinForms, WebForms) picks up the native SNI DLLs automatically, referencing the workaround pattern already shared by the reporter.
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
priyankatiwari08 commentedon Sep 17, 2026
/triage
github-actions commentedon Sep 17, 2026
🔍 Triage Summary (on-demand re-triage)
Area\Native SNIAnalysis
This issue is a known packaging/deployment problem: the native
Microsoft.Data.SqlClient.SNI.{x86,x64,arm64}.dllfiles ship without a.deployextension, so VS 2017 ClickOnce/VSTO publish does not include them in the publish manifest, causing the app to fail at the customer machine due to the missing native SNI binary. This is already tracked as a sub-issue of the parent epic #4129 ("SNI loading issues") and is functionally the same root cause reported in #766 (VSTO Add-ins + ClickOnce). Severity is P2 — there is a documented workaround (manually adding.deploycopies via csproj target), but it is a recurring pain point for .NET Framework/ClickOnce/VSTO consumers and affects a widening cross-section of legacy deployment models.Next Steps
.deployfile naming) is shared across all of these.Microsoft.Data.SqlClient.SNI.*.dll.Microsoft.Data.SqlClient.SNINuGet package's build/targets file (auto-generating.deploycopies or content items recognized by ClickOnce), or via updated official guidance/documentation pointing users to the MSBuild workaround already found by the reporter (adding a build target that copies the SNI DLLs as.deployfiles into$(PublishDir)).Microsoft.Data.SqlClient.SNI.targets/.propscan be updated so ClickOnce-based publish (VSTO, WinForms, WebForms) picks up the native SNI DLLs automatically, referencing the workaround pattern already shared by the reporter.