Skip to content

Commit af2863c

Browse files
authored
Alwas use System.Text.Json 10.0.0 if we do not target net10 (#182)
1 parent 26d578e commit af2863c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Elastic.Transport/Elastic.Transport.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
<ItemGroup>
3939
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
4040
</ItemGroup>
41-
<ItemGroup Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">
42-
<PackageReference Include="System.Text.Json" Version="8.0.5" />
43-
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="8.0.0" />
41+
<ItemGroup Condition="'$(TargetFramework)' != 'net10.0'">
42+
<PackageReference Include="System.Text.Json" Version="10.0.0" />
43+
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="10.0.0" />
4444
</ItemGroup>
4545

4646
<ItemGroup>

0 commit comments

Comments
 (0)