forked from project-redbud/FunGame-Core
保留中文原始字符
This commit is contained in:
parent
0391f4f045
commit
1f39603039
@ -1,6 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Library</OutputType>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
using System.Collections;
|
||||
using System.Text.Encodings.Web;
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
using System.Text.Unicode;
|
||||
using Milimoe.FunGame.Core.Library.Common.JsonConverter;
|
||||
using Milimoe.FunGame.Core.Library.Common.Network;
|
||||
|
||||
@ -14,6 +16,7 @@ namespace Milimoe.FunGame.Core.Service
|
||||
private readonly static JsonSerializerOptions GeneralOptions = new()
|
||||
{
|
||||
WriteIndented = true,
|
||||
Encoder = JavaScriptEncoder.Create(UnicodeRanges.All),
|
||||
ReferenceHandler = ReferenceHandler.IgnoreCycles,
|
||||
Converters = { new DateTimeConverter(), new DataTableConverter(), new DataSetConverter(), new UserConverter(), new RoomConverter() }
|
||||
};
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
@echo off
|
||||
call cd src
|
||||
call dotnet clean
|
||||
call dotnet build -c Release -r linux-x64
|
||||
pause
|
||||
@ -1,5 +1,4 @@
|
||||
@echo off
|
||||
call cd src
|
||||
call dotnet clean
|
||||
call dotnet build -c Release -r win-x64
|
||||
pause
|
||||
@ -1,5 +1,4 @@
|
||||
@echo off
|
||||
call cd src
|
||||
call dotnet clean
|
||||
call dotnet publish -c Release -r linux-x64
|
||||
pause
|
||||
@ -1,5 +1,4 @@
|
||||
@echo off
|
||||
call cd src
|
||||
call dotnet clean
|
||||
call dotnet publish -c Release -r win-x64
|
||||
pause
|
||||
Loading…
x
Reference in New Issue
Block a user