Skip to content

Commit c9a2dd8

Browse files
authored
fix: pin System.Text.Json versions for older frameworks (#1407)
This PR fixes an issue where `System.Text.Json` version 10.0.2 was incorrectly specified for .NET 6.0 and .NET 8.0 target frameworks. The fix pins appropriate framework-specific versions using exact version notation. ### Changes: - Freeze `System.Text.Json` to version 6.0.11 for .NET 6.0 targets - Freeze `System.Text.Json` to version 8.0.6 for .NET 8.0 targets
1 parent d50f129 commit c9a2dd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Directory.Packages.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
44
</PropertyGroup>
55
<ItemGroup Condition=" '$(TargetFramework)' == 'net6.0' ">
6-
<PackageVersion Include="System.Text.Json" Version="10.0.2"/>
6+
<PackageVersion Include="System.Text.Json" Version="[6.0.11]"/>
77
</ItemGroup>
88
<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' ">
9-
<PackageVersion Include="System.Text.Json" Version="10.0.2"/>
9+
<PackageVersion Include="System.Text.Json" Version="[8.0.6]"/>
1010
</ItemGroup>
1111
<ItemGroup Condition=" '$(TargetFramework)' != 'net8.0' And '$(TargetFramework)' != 'net6.0' ">
1212
<PackageVersion Include="System.Text.Json" Version="10.0.2"/>

0 commit comments

Comments
 (0)