| external help file | ISpy.dll-Help.xml |
|---|---|
| Module Name | ISpy |
| online version | https://github.com/trackd/ISpy/blob/main/docs/en-US |
| schema | 2.0.0 |
Creates a configured CSharpDecompiler instance for advanced decompilation scenarios.
New-Decompiler [-Path] <String> [-LanguageVersion <LanguageVersion>] [-RemoveDeadStores]
[-RemoveDeadCode] [-PDBFilePath <String>] [<CommonParameters>]The New-Decompiler cmdlet creates and configures a CSharpDecompiler instance that can be used for advanced decompilation scenarios. This cmdlet is useful when you need fine-grained control over the decompilation process or want to reuse a decompiler instance across multiple operations.
PS C:\> New-Decompiler -Path './output/lib/ICSharpCode.Decompiler.dll'This command creates a CSharpDecompiler instance for the specified assembly.
PS C:\> New-Decompiler -Path './output/lib/ICSharpCode.Decompiler.dll' -LanguageVersion CSharp10This command creates a decompiler using C# 10 syntax.
PS C:\> New-Decompiler -Path './output/lib/ICSharpCode.Decompiler.dll' -RemoveDeadCode -RemoveDeadStoresThis command configures the decompiler to remove dead code and stores.
Specifies the path to the .NET assembly file to decompile.
Type: String
Required: True
Position: 0
Accept pipeline input: True (ByPropertyName, ByValue)Specifies the C# language version for the decompiler.
Type: LanguageVersion
Required: False
Position: NamedRemoves dead stores from the decompiled output.
Type: SwitchParameter
Required: False
Position: NamedRemoves dead code from the decompiled output.
Type: SwitchParameter
Required: False
Position: NamedSpecifies the path to a PDB file for debug information.
Type: String
Required: False
Position: NamedSystem.String — accepts assembly file paths from the pipeline.
Returns a configured CSharpDecompiler instance.
- Use with Export-DecompileSource or Get-DecompiledSource for advanced scenarios.