-
Notifications
You must be signed in to change notification settings - Fork 297
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
SqlConnectionStringBuilder class missing HostNameInCertificate property #1775
Comments
Hi @nemanja-milovancevic , thanks for bringing the missing |
Interesting, it's working when I use |
The issue seems to be due to missing refs in .NET Framework ref project. Please find PR #1776 to fix the same. |
Thanks @cheenamalhotra ! |
remind me - why do you bother maintaining separate "ref" DLLs instead of just having the compiler reference the full DLLs in the lib folder? |
@nemanja-milovancevic The fix has been merged in the 5.0.1 release. |
@cheenamalhotra @lcheunglci Thanks for fixing this! |
Describe the bug
SqlConnectionStringBuilder class is missing the HostNameInCertificate property on the net462 and net472. It's present on the net6.0.
To reproduce
csproj file:
C# file:
If you change the target version to net6.0 it will work.
Expected behavior
According to the docs MDS5.0.0 should be supported on net462 and above. Important part of that is TDS 8.0 support.
Further technical details
Microsoft.Data.SqlClient version: 5.0.0
.NET target: Framework 4.6.2, 4.7.2
SQL Server version: N/A
Operating system: Windows Server 2019
Additional context
We're working on updating ADS to the TDS 8.0 and we can't do it without MDS support.
The text was updated successfully, but these errors were encountered: