Browse Source

Update command line options documentation to latest released version

pull/3198/merge v9.0-preview2
Christoph Wille 11 months ago
parent
commit
dd7d7b806f
  1. 28
      ICSharpCode.ILSpyCmd/README.md

28
ICSharpCode.ILSpyCmd/README.md

@ -1,16 +1,16 @@
# ilspycmd .NET 6.0 Tool # ilspycmd .NET Tool
To install: To install:
``` ```
dotnet tool install ilspycmd -g dotnet tool install --global ilspycmd
``` ```
Help output (`ilspycmd ---help`): Help output (`ilspycmd --help`):
``` ```
ilspycmd: 8.0.0.7007 ilspycmd: 8.2.0.7535
ICSharpCode.Decompiler: 8.0.0.7007 ICSharpCode.Decompiler: 8.2.0.7535
dotnet tool for decompiling .NET assemblies and generating portable PDBs dotnet tool for decompiling .NET assemblies and generating portable PDBs
@ -20,7 +20,7 @@ Arguments:
Assembly file name(s) The list of assemblies that is being decompiled. This argument is mandatory. Assembly file name(s) The list of assemblies that is being decompiled. This argument is mandatory.
Options: Options:
-v|--version Show version information. -v|--version Show version of ICSharpCode.Decompiler used.
-h|--help Show help information. -h|--help Show help information.
-o|--outputdir <directory> The output directory, if omitted decompiler output is written to standard out. -o|--outputdir <directory> The output directory, if omitted decompiler output is written to standard out.
-p|--project Decompile assembly as compilable project. This requires the output directory option. -p|--project Decompile assembly as compilable project. This requires the output directory option.
@ -29,15 +29,19 @@ Options:
--il-sequence-points Show IL with sequence points. Implies -il. --il-sequence-points Show IL with sequence points. Implies -il.
-genpdb|--generate-pdb Generate PDB. -genpdb|--generate-pdb Generate PDB.
-usepdb|--use-varnames-from-pdb Use variable names from PDB. -usepdb|--use-varnames-from-pdb Use variable names from PDB.
-l|--list <entity-type(s)> Lists all entities of the specified type(s). Valid types: c(lass), i(nterface), -l|--list <entity-type(s)> Lists all entities of the specified type(s). Valid types: c(lass), i(nterface), s(truct), d(elegate), e(num)
s(truct), d(elegate), e(num) -lv|--languageversion <version> C# Language version: CSharp1, CSharp2, CSharp3, CSharp4, CSharp5, CSharp6, CSharp7, CSharp7_1, CSharp7_2,
-lv|--languageversion <version> C# Language version: CSharp1, CSharp2, CSharp3, CSharp4, CSharp5, CSharp6, CSharp7_0, CSharp7_3, CSharp8_0, CSharp9_0, CSharp10_0, Preview or Latest
CSharp7_1, CSharp7_2, CSharp7_3, CSharp8_0, CSharp9_0, CSharp_10_0 or Latest Allowed values are: CSharp1, CSharp2, CSharp3, CSharp4, CSharp5, CSharp6, CSharp7, CSharp7_1, CSharp7_2,
CSharp7_3, CSharp8_0, CSharp9_0, CSharp10_0, CSharp11_0, Preview, Latest.
Default value is: Latest.
-r|--referencepath <path> Path to a directory containing dependencies of the assembly that is being decompiled. -r|--referencepath <path> Path to a directory containing dependencies of the assembly that is being decompiled.
--no-dead-code Remove dead code. --no-dead-code Remove dead code.
--no-dead-stores Remove dead stores. --no-dead-stores Remove dead stores.
-d|--dump-package Dump package assembiles into a folder. This requires the output directory option. -d|--dump-package Dump package assemblies into a folder. This requires the output directory option.
--nested-directories Use nested directories for namespaces. --nested-directories Use nested directories for namespaces.
--disable-updatecheck If using ilspycmd in a tight loop or fully automated scenario, you might want to disable the automatic update
check.
Remarks: Remarks:
-o is valid with every option and required when using -p. -o is valid with every option and required when using -p.
@ -52,7 +56,7 @@ Examples:
Decompile assembly to destination directory, create a project file, one source file per type. Decompile assembly to destination directory, create a project file, one source file per type.
ilspycmd -p -o c:\decompiled sample.dll ilspycmd -p -o c:\decompiled sample.dll
Decompile assembly to destination directory, create a project file, one source file per type, Decompile assembly to destination directory, create a project file, one source file per type,
into nicely nested directories. into nicely nested directories.
ilspycmd --nested-directories -p -o c:\decompiled sample.dll ilspycmd --nested-directories -p -o c:\decompiled sample.dll
``` ```

Loading…
Cancel
Save