Skip to content

Commit 1339957

Browse files
committed
added .NET 9 support
1 parent 19e8a82 commit 1339957

File tree

7 files changed

+17
-16
lines changed

7 files changed

+17
-16
lines changed

.github/workflows/ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
6.x
2323
7.x
2424
8.x
25+
9.x
2526
2627
- name: dotnet build
2728
run: dotnet build

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,16 @@ This test deserializes a JSON patch document of 8 operations and applies the cha
6767

6868
See [SystemTextJsonPatch.Benchmark](https://github.com/Havunen/SystemTextJsonPatch/tree/main/SystemTextJsonPatch.Benchmark) for more details.
6969

70-
BenchmarkDotNet v0.14.0, Windows 11 (10.0.22631.4169/23H2/2023Update/SunValley3)
70+
BenchmarkDotNet v0.14.0, Windows 11 (10.0.22631.4460/23H2/2023Update/SunValley3)
7171
AMD Ryzen 9 5950X, 1 CPU, 32 logical and 16 physical cores
72-
.NET SDK 9.0.100-rc.1.24452.12
73-
[Host] : .NET 8.0.8 (8.0.824.36612), X64 RyuJIT AVX2
74-
Job-MZQQSH : .NET 8.0.8 (8.0.824.36612), X64 RyuJIT AVX2
72+
.NET SDK 9.0.100
73+
[Host] : .NET 9.0.0 (9.0.24.52809), X64 RyuJIT AVX2
74+
Job-ZXROHW : .NET 9.0.0 (9.0.24.52809), X64 RyuJIT AVX2
7575

7676
WarmupCount=2
7777

78-
| Method | Mean | Error | StdDev | Gen0 | Gen1 | Allocated |
79-
|-------------------- |-----------:|----------:|----------:|-------:|-------:|----------:|
80-
| SystemTextJsonPatch | 4.297 us | 0.0364 us | 0.0340 us | 0.2975 | - | 4.98 KB |
81-
| MarvinJsonPatch | 764.999 us | 9.9837 us | 8.3368 us | 3.9063 | 1.9531 | 95.41 KB |
82-
| AspNetCoreJsonPatch | 16.692 us | 0.0996 us | 0.0932 us | 2.6550 | 0.0610 | 43.55 KB |
78+
| Method | Mean | Error | StdDev | Gen0 | Gen1 | Allocated |
79+
|-------------------- |-----------:|-----------:|-----------:|-------:|-------:|----------:|
80+
| SystemTextJsonPatch | 3.641 us | 0.0168 us | 0.0149 us | 0.2747 | - | 4.63 KB |
81+
| MarvinJsonPatch | 701.319 us | 13.7540 us | 16.8912 us | 3.9063 | 1.9531 | 95.3 KB |
82+
| AspNetCoreJsonPatch | 14.871 us | 0.2871 us | 0.2820 us | 2.6245 | 0.0916 | 43.07 KB |

SystemTextJsonPatch.ApiTest/SystemTextJsonPatch.ApiTest.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>

SystemTextJsonPatch.Benchmark/SystemTextJsonPatch.Benchmark.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net8.0</TargetFramework>
5+
<TargetFramework>net9.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>disable</Nullable>
88
<IsPackable>false</IsPackable>
@@ -12,7 +12,7 @@
1212
<ItemGroup>
1313
<PackageReference Include="BenchmarkDotNet" Version="0.14.0" />
1414
<PackageReference Include="Marvin.JsonPatch" Version="2.2.1" />
15-
<PackageReference Include="Microsoft.AspNetCore.JsonPatch" Version="8.0.10" />
15+
<PackageReference Include="Microsoft.AspNetCore.JsonPatch" Version="9.0.0" />
1616
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
1717
</ItemGroup>
1818

SystemTextJsonPatch.Console/SystemTextJsonPatch.Console.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net8.0</TargetFramework>
5+
<TargetFramework>net9.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<IsPackable>false</IsPackable>
88
<IsPublishable>false</IsPublishable>

SystemTextJsonPatch.Tests/SystemTextJsonPatch.Tests.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net7.0;net6.0;net8.0</TargetFrameworks>
4+
<TargetFrameworks>net7.0;net6.0;net8.0;net9.0</TargetFrameworks>
55
<IsPackable>false</IsPackable>
66
<IsPublishable>false</IsPublishable>
77
<IsUnitTestProject>True</IsUnitTestProject>

SystemTextJsonPatch/SystemTextJsonPatch.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<Description>SystemTextJson is JSON Patch (JsonPatchDocument) RFC 6902 implementation for .NET using System.Text.Json</Description>
5-
<TargetFrameworks>netstandard2.0;net6.0;net7.0;net8.0</TargetFrameworks>
5+
<TargetFrameworks>netstandard2.0;net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
66
<NoWarn>$(NoWarn);CS1591</NoWarn>
77
<GenerateDocumentationFile>true</GenerateDocumentationFile>
88
<PackageTags>aspnetcore;json;jsonpatch;system.text.json;rfc6902;</PackageTags>
@@ -36,7 +36,7 @@
3636
</ItemGroup>
3737

3838
<ItemGroup Condition="'$(targetframework)' == 'netstandard2.0'">
39-
<PackageReference Include="System.Text.Json" Version="8.0.5" />
39+
<PackageReference Include="System.Text.Json" Version="9.0.0" />
4040
</ItemGroup>
4141

4242
<ItemGroup>

0 commit comments

Comments
 (0)