-
Notifications
You must be signed in to change notification settings - Fork 295
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
Native SNI Improvements #570
Native SNI Improvements #570
Conversation
It might be worth noting at release that this is just for windows os, all non-windows will use managed. |
Will this be available in both the |
Hi @IanKemp These changes are applicable only to Microsoft.Data.SqlClient latest preview (2.0.0-preview4) and future versions. |
@cheenamalhotra sorry for the late response on this but can you confirm that with the switch to this package, that using Microsoft.Data.SqlClient 2.0.0 or later will no longer require the Microsoft Visual C++ Redistributable to be installed on Windows? It looks like that's the case but I can't find any documentation on that specifically. |
Hi @irontoby We removed the dependency notes from Microsoft.Data.SqlClient NuGet v1.1.1 onwards. But since the SNI is closed source and is made available to public with driver releases (as it's not meant for direct reference), we probably didn't publish SNI related changes. |
@cheenamalhotra thanks! Understand your reasoning, but this has definitely been a bit of a frustrating experience for us. The need for having to install the redistributable was not obvious at first, since we weren't even using So it worked fine on devs' machines but broke on the server & took a good while to figure out what was going wrong. So then we had to update our provisioning tools to install that runtime on all servers. Anyway thanks for the feedback; based on this it sounds like we can remove the runtime from our update process as long as we directly reference |
This PR brings below changes:
For .NET Core and .NET Standard targets (on Windows)
We now introduce
Microsoft.Data.SqlClient.SNI.runtime
as new dependency to replace the oldruntime.native.System.Data.SqlClient.SNI
. Below platforms are supported by Microsoft.Data.SqlClient.SNI.runtime:For .NET Framework targets
The
SNI.dll
files previously downloaded to x64 and x86 folders are now renamed toMicrosoft.Data.SqlClient.SNI.x64.dll
andMicrosoft.Data.SqlClient.SNI.x86.dll
to support respective platforms.Test Expansions
The SqlClient test suite now allows executing same tests for below reference types: