Skip to content

Remove explicit dependency on System.Text.Json for modern .net #3766

Open

Description

@Arjan321

Describe the bug

Now that all dependencies of MDS have removed their explicit reference to System.Text.Json for modern dotnet, please also remove it from MDS

To reproduce

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net8.0</TargetFramework>
    <RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.Data.SqlClient" Version="7.*-*" />
  </ItemGroup>
</Project>

Look into the generated packages.lock.json to see that the only reason System.Text.Json is included is because of the top level dependency of Microsoft.Data.SqlClient

Expected behavior

No explicit dependency on System.Text.Json

Further technical details

MDS 6.1, 7.0-preview
dotnet 8 and 9 (not dotnet10 somehow)

Activity

  1. Frulfump commented on Nov 15, 2025

    @Frulfump

    For .NET 10 it's probably removed due to package pruning. You can try to manually disable it for .NET 10 and manually enable it for .NET 9 to compare. (Not sure if pruning works for .NET 8 but it should if built with the .NET 10 SDK.)

  2. moved this from To triage to Backlog in SqlClient Boardon Nov 18, 2025
  3. priyankatiwari08 commented on Sep 17, 2026

    @priyankatiwari08
    Contributor

    /triage

  4. github-actions commented on Sep 17, 2026

    @github-actions

    Generated by SqlClient Issue Auto-Triage for #3766 · copilot · auto · 111.8 AIC · ⌖ 14.1 AIC · ⊞ 11.9K · ◷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions