From 949abc258227e2b9958ac516ec2d8d34e98b7c52 Mon Sep 17 00:00:00 2001 From: Oleksii Holub <1935960+Tyrrrz@users.noreply.github.com> Date: Sun, 26 May 2024 23:12:05 +0300 Subject: [PATCH] Fix `--partition` and `--filter` options not working due to assembly trimming (#1240) --- DiscordChatExporter.Cli/Program.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DiscordChatExporter.Cli/Program.cs b/DiscordChatExporter.Cli/Program.cs index f849e6d17..2dfa24baf 100644 --- a/DiscordChatExporter.Cli/Program.cs +++ b/DiscordChatExporter.Cli/Program.cs @@ -3,6 +3,8 @@ using CliFx; using DiscordChatExporter.Cli.Commands; using DiscordChatExporter.Cli.Commands.Converters; +using DiscordChatExporter.Core.Exporting.Filtering; +using DiscordChatExporter.Core.Exporting.Partitioning; namespace DiscordChatExporter.Cli; @@ -22,6 +24,8 @@ public static class Program typeof(ThreadInclusionModeBindingConverter) )] [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(TruthyBooleanBindingConverter))] + [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(PartitionLimit))] + [DynamicDependency(DynamicallyAccessedMemberTypes.All, typeof(MessageFilter))] public static async Task Main(string[] args) => await new CliApplicationBuilder() .AddCommand()