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:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net462</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.0.0" />
</ItemGroup>
</Project>
C# file:
using Microsoft.Data.SqlClient;
namespace Example
{
class Example
{
public static void Main()
{
SqlConnectionStringBuilder builder = new SqlConnectionStringBuilder();
builder.HostNameInCertificate = "";
}
}
}
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.
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.