From 3eca16a6618d106eed8f9b9826b41c9b1c44bee7 Mon Sep 17 00:00:00 2001 From: cs8425 Date: Tue, 28 Apr 2026 20:19:17 +0800 Subject: [PATCH] upgrade to dotnet 10 --- Common/Common.csproj | 3 +-- GameServer/GameServer.csproj | 3 +-- MikuSB.Updater/MikuSB.Updater.csproj | 2 +- MikuSB/MikuSB.csproj | 2 +- .../PublishProfiles/MikuSB-Win64-Debug.pubxml | 2 +- .../MikuSB-Win64-MultiFile.pubxml | 2 +- .../MikuSB-Win64-OneFile.pubxml | 2 +- Proto/Proto.csproj | 2 +- Proxy/Proxy.csproj | 2 +- SdkServer/SdkServer.cs | 20 +++++++++---------- SdkServer/SdkServer.csproj | 2 +- TcpSharp/TcpSharp.csproj | 3 +-- 12 files changed, 21 insertions(+), 24 deletions(-) diff --git a/Common/Common.csproj b/Common/Common.csproj index 024f2ef..64ce4a9 100644 --- a/Common/Common.csproj +++ b/Common/Common.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0 enable enable false @@ -21,7 +21,6 @@ - diff --git a/GameServer/GameServer.csproj b/GameServer/GameServer.csproj index 6600304..ead8405 100644 --- a/GameServer/GameServer.csproj +++ b/GameServer/GameServer.csproj @@ -2,7 +2,7 @@ Library - net9.0 + net10.0 enable enable false @@ -22,7 +22,6 @@ - diff --git a/MikuSB.Updater/MikuSB.Updater.csproj b/MikuSB.Updater/MikuSB.Updater.csproj index 84f8afc..f4640d8 100644 --- a/MikuSB.Updater/MikuSB.Updater.csproj +++ b/MikuSB.Updater/MikuSB.Updater.csproj @@ -2,7 +2,7 @@ Exe - net9.0 + net10.0 win-x64 enable enable diff --git a/MikuSB/MikuSB.csproj b/MikuSB/MikuSB.csproj index bfcdc01..19c3b36 100644 --- a/MikuSB/MikuSB.csproj +++ b/MikuSB/MikuSB.csproj @@ -2,7 +2,7 @@ Exe - net9.0 + net10.0 enable enable false diff --git a/MikuSB/Properties/PublishProfiles/MikuSB-Win64-Debug.pubxml b/MikuSB/Properties/PublishProfiles/MikuSB-Win64-Debug.pubxml index b46a1e0..d1148d7 100644 --- a/MikuSB/Properties/PublishProfiles/MikuSB-Win64-Debug.pubxml +++ b/MikuSB/Properties/PublishProfiles/MikuSB-Win64-Debug.pubxml @@ -9,7 +9,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. bin\MikuSB-Win64-Debug FileSystem <_TargetId>Folder - net9.0 + net10.0 win-x64 false false diff --git a/MikuSB/Properties/PublishProfiles/MikuSB-Win64-MultiFile.pubxml b/MikuSB/Properties/PublishProfiles/MikuSB-Win64-MultiFile.pubxml index d51f9a6..ab03f5c 100644 --- a/MikuSB/Properties/PublishProfiles/MikuSB-Win64-MultiFile.pubxml +++ b/MikuSB/Properties/PublishProfiles/MikuSB-Win64-MultiFile.pubxml @@ -9,7 +9,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. bin\MikuSB-MultiFile\ FileSystem <_TargetId>Folder - net9.0 + net10.0 win-x64 false false diff --git a/MikuSB/Properties/PublishProfiles/MikuSB-Win64-OneFile.pubxml b/MikuSB/Properties/PublishProfiles/MikuSB-Win64-OneFile.pubxml index 9ac6ab9..d55e2e3 100644 --- a/MikuSB/Properties/PublishProfiles/MikuSB-Win64-OneFile.pubxml +++ b/MikuSB/Properties/PublishProfiles/MikuSB-Win64-OneFile.pubxml @@ -9,7 +9,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. bin\MikuSB-OneFile\ FileSystem <_TargetId>Folder - net9.0 + net10.0 win-x64 true true diff --git a/Proto/Proto.csproj b/Proto/Proto.csproj index 4fe010f..7ff33df 100644 --- a/Proto/Proto.csproj +++ b/Proto/Proto.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0 enable enable false diff --git a/Proxy/Proxy.csproj b/Proxy/Proxy.csproj index c33e878..73aa14a 100644 --- a/Proxy/Proxy.csproj +++ b/Proxy/Proxy.csproj @@ -1,6 +1,6 @@ - net9.0 + net10.0 enable enable MikuSB.Proxy diff --git a/SdkServer/SdkServer.cs b/SdkServer/SdkServer.cs index 6955abe..9b7a453 100644 --- a/SdkServer/SdkServer.cs +++ b/SdkServer/SdkServer.cs @@ -17,17 +17,17 @@ public static class SdkServer { public static void Start(string[] args) { - BuildWebHost(args).RunAsync(); - } + var builder = Host.CreateDefaultBuilder(args) + .ConfigureWebHostDefaults(webBuilder => + { + webBuilder + .UseStartup() + .ConfigureLogging((_, logging) => { logging.ClearProviders(); }) + .UseUrls(ConfigManager.Config.HttpServer.GetDisplayAddress()); + }); - private static IWebHost BuildWebHost(string[] args) - { - var builder = WebHost.CreateDefaultBuilder(args) - .UseStartup() - .ConfigureLogging((_, logging) => { logging.ClearProviders(); }) - .UseUrls(ConfigManager.Config.HttpServer.GetDisplayAddress()); - - return builder.Build(); + var host = builder.Build(); + host.RunAsync(); } } diff --git a/SdkServer/SdkServer.csproj b/SdkServer/SdkServer.csproj index d7d4a54..effc4cb 100644 --- a/SdkServer/SdkServer.csproj +++ b/SdkServer/SdkServer.csproj @@ -1,7 +1,7 @@ - net9.0 + net10.0 enable enable MikuSB.SdkServer diff --git a/TcpSharp/TcpSharp.csproj b/TcpSharp/TcpSharp.csproj index 68eb1cf..004e7a3 100644 --- a/TcpSharp/TcpSharp.csproj +++ b/TcpSharp/TcpSharp.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0 enable enable false @@ -11,7 +11,6 @@ -