From d7ea6be99d06807a33842cabdf0768865cdc4bee Mon Sep 17 00:00:00 2001 From: HRxiaohu Date: Wed, 29 Jan 2025 16:38:40 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E5=8D=87=E7=BA=A7=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E8=87=B3=20.NET=208.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SodaCL.csproj | 85 +++++++++++++++++++++------------------------- Toolkits/Logger.cs | 2 +- 2 files changed, 40 insertions(+), 47 deletions(-) diff --git a/SodaCL.csproj b/SodaCL.csproj index eab707c..ac967da 100644 --- a/SodaCL.csproj +++ b/SodaCL.csproj @@ -1,47 +1,40 @@  - - - WinExe - net6.0-windows - true - disable - Soda Craft Launcher - SodaCL - Soda Craft Launcher 启动器 - 一个清爽的 Minecraft 启动器 - 0.0.5.1 - 0.0.5.1 - Copyright © 2022-2023 Soda Quantum Laboratory,All Rights Reserved. - Resources\Images\Dev.ico - SodaCL - disable - - - - 1701;1702;SYSLIB0014 - - - - 1701;1702;SYSLIB0014 - - - - - - - - - - - - - - - - - - - - - - + + WinExe + net8.0-windows + true + disable + Soda Craft Launcher + SodaCL + Soda Craft Launcher 启动器 + 一个清爽的 Minecraft 启动器 + 0.0.5.1 + 0.0.5.1 + Copyright © 2022-2023 Soda Quantum Laboratory,All Rights Reserved. + Resources\Images\Dev.ico + SodaCL + disable + + + 1701;1702;SYSLIB0014 + + + 1701;1702;SYSLIB0014 + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Toolkits/Logger.cs b/Toolkits/Logger.cs index 21da216..a6ac27c 100644 --- a/Toolkits/Logger.cs +++ b/Toolkits/Logger.cs @@ -142,7 +142,7 @@ public static void LogStart() } try { - Trace.Listeners.Add(new TextWriterTraceListener($"{LauncherInfo.SODACL_LOG_FOLDER_PATH}\\[{DateTime.Now.Month}.{DateTime.Now.Day}]SodaCL_Log.txt")); + System.Diagnostics.Trace.Listeners.Add(new TextWriterTraceListener($"{LauncherInfo.SODACL_LOG_FOLDER_PATH}\\[{DateTime.Now.Month}.{DateTime.Now.Day}]SodaCL_Log.txt")); Trace.AutoFlush = true; Trace.WriteLine(" -------- SodaCL 程序日志记录开始 --------"); }