From 9ea0218a1025e3100f8eaac6b864dbf552af900b Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 5 Jul 2025 22:23:51 +0800 Subject: [PATCH] Add sort custom attributes option to ILSpyCmd --- ICSharpCode.ILSpyCmd/IlspyCmdProgram.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ICSharpCode.ILSpyCmd/IlspyCmdProgram.cs b/ICSharpCode.ILSpyCmd/IlspyCmdProgram.cs index 2879b2d89..f5d0532ac 100644 --- a/ICSharpCode.ILSpyCmd/IlspyCmdProgram.cs +++ b/ICSharpCode.ILSpyCmd/IlspyCmdProgram.cs @@ -113,6 +113,9 @@ Examples: [Option("--no-dead-stores", "Remove dead stores.", CommandOptionType.NoValue)] public bool RemoveDeadStores { get; } + [Option("--sort-attributes", "Sort custom attributes.", CommandOptionType.NoValue)] + public bool SortCustomAttributes { get; } + [Option("-d|--dump-package", "Dump package assemblies into a folder. This requires the output directory option.", CommandOptionType.NoValue)] public bool DumpPackageFlag { get; } @@ -331,6 +334,7 @@ Examples: RemoveDeadStores = RemoveDeadStores, UseSdkStyleProjectFormat = WholeProjectDecompiler.CanUseSdkStyleProjectFormat(module), UseNestedDirectoriesForNamespaces = NestedDirectories, + SortCustomAttributes = SortCustomAttributes }; }