Enhance project configurations and improve error handling (#22)

* Enhance project configurations and improve error handling

- Added DebugType and NoWarn settings to project files for EpinelPS, ServerSelector, and ServerSelector.Desktop.
- Updated ServerCertificate initialization in Program.cs to read from file bytes for better reliability.
- Improved error handling in DoLimitBreak.cs and ExecuteEventGacha.cs by throwing exceptions for null references and unavailable characters, respectively.
- Refactored ColorConsoleLoggerProvider to simplify logger creation.

These changes aim to enhance debugging capabilities and ensure more robust error management across the application.

* Remove DebugType and DebugSymbols
This commit is contained in:
GreenXeMotion
2025-01-01 03:30:32 +06:00
committed by GitHub
parent 659d99aa0b
commit 8f65cacdda
6 changed files with 11 additions and 5 deletions

View File

@@ -2,6 +2,7 @@
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<Nullable>enable</Nullable>
<NoWarn>$(NoWarn);SYSLIB0057</NoWarn>
<LangVersion>latest</LangVersion>
</PropertyGroup>