Skip to content

Microsoft.Data.SqlClient.SNI not deployed along with ClickOnce #441

@Siam1205

Description

@Siam1205

Describe the bug

The nuget package Microsoft.EntityFrameworkCore.SqlServer v3.1.2 needs the reference to
Microsoft.Data.SqlClient.SNI v1.1.1. The SNI package is automatically added to the project when referencing the SqlServer v3.1.2 which is expected. When building the solution, the directories x64 and x86 are created as expected and everything works fine when started from the \bin\debug and \bin\release folders.

To reproduce the issue

When deploying the solution using ClickOnce, both directories (x86 and x64) are not included so that the application does not work anymore as it lacks the SNI.dll reference. I cannot see a way to solve the issue since I cannot include the reference under

ProjectName > Publish > Application Files...

I saw this (fixed) issue but for ClickOnce, it does not seem to be fixed.

Expected behavior

When deploying the application using ClickOnce, the x64 and x86 directories including the native SNI.dll libraries are copied to the respective version directory inside the "Application Files" directory and referenced properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area\Native SNIIssues that are targeted to the Native SNI codebase.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions