Contributing
Development Environment
To contribute to the code, you need:
- .NET 10.0 SDK
- An IDE (Visual Studio 2022, JetBrains Rider, or VS Code).
Project Structure
DiscordChatExporter.Core: The heart of the application. Contains logic for Discord API interaction, parsing, and exporting.DiscordChatExporter.Cli: The Console Application layer.DiscordChatExporter.Gui: The Avalonia UI Application layer.DiscordChatExporter.Cli.Tests: XUnit tests.
Running Tests
The tests run against a real Discord server/environment. You need to provide a token via environment variable or User Secrets to run them locally.
dotnet user-secrets set DISCORD_TOKEN <your_token> --project DiscordChatExporter.Cli.Tests
dotnet test