修改协议工具

This commit is contained in:
2025-07-27 23:46:43 +08:00
parent 743c1d2baa
commit be33e12b35
112 changed files with 1021 additions and 1119 deletions

View File

@@ -1,11 +1,11 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v8.0",
"name": ".NETCoreApp,Version=v9.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v8.0": {
".NETCoreApp,Version=v9.0": {
"Fantasy.Tools.NetworkProtocol/1.0.0": {
"dependencies": {
"CommandLineParser": "2.9.1",
@@ -30,7 +30,7 @@
"Microsoft.Extensions.Primitives": "9.0.6"
},
"runtime": {
"lib/net8.0/Microsoft.Extensions.Configuration.dll": {
"lib/net9.0/Microsoft.Extensions.Configuration.dll": {
"assemblyVersion": "9.0.0.0",
"fileVersion": "9.0.625.26613"
}
@@ -41,7 +41,7 @@
"Microsoft.Extensions.Primitives": "9.0.6"
},
"runtime": {
"lib/net8.0/Microsoft.Extensions.Configuration.Abstractions.dll": {
"lib/net9.0/Microsoft.Extensions.Configuration.Abstractions.dll": {
"assemblyVersion": "9.0.0.0",
"fileVersion": "9.0.625.26613"
}
@@ -56,7 +56,7 @@
"Microsoft.Extensions.Primitives": "9.0.6"
},
"runtime": {
"lib/net8.0/Microsoft.Extensions.Configuration.FileExtensions.dll": {
"lib/net9.0/Microsoft.Extensions.Configuration.FileExtensions.dll": {
"assemblyVersion": "9.0.0.0",
"fileVersion": "9.0.625.26613"
}
@@ -67,11 +67,10 @@
"Microsoft.Extensions.Configuration": "9.0.6",
"Microsoft.Extensions.Configuration.Abstractions": "9.0.6",
"Microsoft.Extensions.Configuration.FileExtensions": "9.0.6",
"Microsoft.Extensions.FileProviders.Abstractions": "9.0.6",
"System.Text.Json": "9.0.6"
"Microsoft.Extensions.FileProviders.Abstractions": "9.0.6"
},
"runtime": {
"lib/net8.0/Microsoft.Extensions.Configuration.Json.dll": {
"lib/net9.0/Microsoft.Extensions.Configuration.Json.dll": {
"assemblyVersion": "9.0.0.0",
"fileVersion": "9.0.625.26613"
}
@@ -82,7 +81,7 @@
"Microsoft.Extensions.Primitives": "9.0.6"
},
"runtime": {
"lib/net8.0/Microsoft.Extensions.FileProviders.Abstractions.dll": {
"lib/net9.0/Microsoft.Extensions.FileProviders.Abstractions.dll": {
"assemblyVersion": "9.0.0.0",
"fileVersion": "9.0.625.26613"
}
@@ -95,7 +94,7 @@
"Microsoft.Extensions.Primitives": "9.0.6"
},
"runtime": {
"lib/net8.0/Microsoft.Extensions.FileProviders.Physical.dll": {
"lib/net9.0/Microsoft.Extensions.FileProviders.Physical.dll": {
"assemblyVersion": "9.0.0.0",
"fileVersion": "9.0.625.26613"
}
@@ -103,7 +102,7 @@
},
"Microsoft.Extensions.FileSystemGlobbing/9.0.6": {
"runtime": {
"lib/net8.0/Microsoft.Extensions.FileSystemGlobbing.dll": {
"lib/net9.0/Microsoft.Extensions.FileSystemGlobbing.dll": {
"assemblyVersion": "9.0.0.0",
"fileVersion": "9.0.625.26613"
}
@@ -111,7 +110,7 @@
},
"Microsoft.Extensions.Primitives/9.0.6": {
"runtime": {
"lib/net8.0/Microsoft.Extensions.Primitives.dll": {
"lib/net9.0/Microsoft.Extensions.Primitives.dll": {
"assemblyVersion": "9.0.0.0",
"fileVersion": "9.0.625.26613"
}
@@ -124,42 +123,6 @@
"fileVersion": "13.0.3.27908"
}
}
},
"System.IO.Pipelines/9.0.6": {
"runtime": {
"lib/net8.0/System.IO.Pipelines.dll": {
"assemblyVersion": "9.0.0.0",
"fileVersion": "9.0.625.26613"
}
}
},
"System.Text.Encodings.Web/9.0.6": {
"runtime": {
"lib/net8.0/System.Text.Encodings.Web.dll": {
"assemblyVersion": "9.0.0.0",
"fileVersion": "9.0.625.26613"
}
},
"runtimeTargets": {
"runtimes/browser/lib/net8.0/System.Text.Encodings.Web.dll": {
"rid": "browser",
"assetType": "runtime",
"assemblyVersion": "9.0.0.0",
"fileVersion": "9.0.625.26613"
}
}
},
"System.Text.Json/9.0.6": {
"dependencies": {
"System.IO.Pipelines": "9.0.6",
"System.Text.Encodings.Web": "9.0.6"
},
"runtime": {
"lib/net8.0/System.Text.Json.dll": {
"assemblyVersion": "9.0.0.0",
"fileVersion": "9.0.625.26613"
}
}
}
}
},
@@ -238,27 +201,6 @@
"sha512": "sha512-HrC5BXdl00IP9zeV+0Z848QWPAoCr9P3bDEZguI+gkLcBKAOxix/tLEAAHC+UvDNPv4a2d18lOReHMOagPa+zQ==",
"path": "newtonsoft.json/13.0.3",
"hashPath": "newtonsoft.json.13.0.3.nupkg.sha512"
},
"System.IO.Pipelines/9.0.6": {
"type": "package",
"serviceable": true,
"sha512": "sha512-0nlr0reXrRmkZNKifKqh2DgGhQgfkT7Qa3gQxIn/JI7/y3WDiTz67M+Sq3vFhUqcG8O5zVrpqHvIHeGPGUBsEw==",
"path": "system.io.pipelines/9.0.6",
"hashPath": "system.io.pipelines.9.0.6.nupkg.sha512"
},
"System.Text.Encodings.Web/9.0.6": {
"type": "package",
"serviceable": true,
"sha512": "sha512-uWRgViw2yJAUyGxrzDLCc6fkzE2dZIoXxs8V6YjCujKsJuP0pnpYSlbm2/7tKd0SjBnMtwfDQhLenk3bXonVOA==",
"path": "system.text.encodings.web/9.0.6",
"hashPath": "system.text.encodings.web.9.0.6.nupkg.sha512"
},
"System.Text.Json/9.0.6": {
"type": "package",
"serviceable": true,
"sha512": "sha512-h+ZtYTyTnTh5Ju6mHCKb3FPGx4ylJZgm9W7Y2psUnkhQRPMOIxX+TCN0ZgaR/+Yea+93XHWAaMzYTar1/EHIPg==",
"path": "system.text.json/9.0.6",
"hashPath": "system.text.json.9.0.6.nupkg.sha512"
}
}
}

View File

@@ -1,9 +1,9 @@
{
"runtimeOptions": {
"tfm": "net8.0",
"tfm": "net9.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "8.0.0"
"version": "9.0.0"
},
"configProperties": {
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false

View File

@@ -18,6 +18,4 @@ if "%choice%"=="1" (
dotnet Fantasy.Tools.NetworkProtocol.dll --p 3
) else (
echo Invalid option
)
PAUSE
)

View File

@@ -0,0 +1,34 @@
#if SERVER
using ProtoBuf;
(UsingNamespace)
using System.Collections.Generic;
using MongoDB.Bson.Serialization.Attributes;
using Fantasy;
using Fantasy.Network.Interface;
using Fantasy.Serialize;
// ReSharper disable InconsistentNaming
// ReSharper disable RedundantUsingDirective
// ReSharper disable RedundantOverriddenMember
// ReSharper disable PartialTypeWithSinglePart
// ReSharper disable UnusedAutoPropertyAccessor.Global
// ReSharper disable MemberCanBePrivate.Global
// ReSharper disable CheckNamespace
#pragma warning disable CS8625 // Cannot convert null literal to non-nullable reference type.
#pragma warning disable CS8618
namespace NBC
{
#else
using ProtoBuf;
(UsingNamespace)
using System.Collections.Generic;
using Fantasy;
using NBC;
using NBC.Network.Interface;
using NBC.Serialize;
#pragma warning disable CS8618
namespace NBC
{
#endif
(Content)}