From 4e1b7d4845e39056e3013a230e51fb49cf3643cb Mon Sep 17 00:00:00 2001 From: xRain Date: Tue, 14 Oct 2025 02:20:37 +0800 Subject: [PATCH] update to 9 --- Helpers/SimApiUtil.cs | 4 ++-- SimApi.csproj | 2 +- SimApiExtensions.cs | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Helpers/SimApiUtil.cs b/Helpers/SimApiUtil.cs index cded92d..af35990 100644 --- a/Helpers/SimApiUtil.cs +++ b/Helpers/SimApiUtil.cs @@ -24,10 +24,10 @@ public static class SimApiUtil /// public static JsonSerializerOptions JsonOption => new() { - ReferenceHandler = ReferenceHandler.Preserve, + // ReferenceHandler = ReferenceHandler.Preserve, Encoder = JavaScriptEncoder.Create(UnicodeRanges.All), PropertyNamingPolicy = JsonNamingPolicy.CamelCase, - DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull + // DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull }; /// diff --git a/SimApi.csproj b/SimApi.csproj index ac39b06..91d4719 100644 --- a/SimApi.csproj +++ b/SimApi.csproj @@ -14,8 +14,8 @@ false true 5.0.2 - net8.0 enable + net8.0;net9.0 diff --git a/SimApiExtensions.cs b/SimApiExtensions.cs index ec50def..7a1a22f 100644 --- a/SimApiExtensions.cs +++ b/SimApiExtensions.cs @@ -3,7 +3,6 @@ using System.Diagnostics; using System.Linq; using System.Reflection; using System.Text.Json; -using System.Text.Json.Serialization; using Hangfire; using Hangfire.Console; using Hangfire.Redis.StackExchange;