Browse Source

Add version to output filename in DisassembleAllCommand

pull/1198/head
Siegfried Pammer 7 years ago
parent
commit
14d9f423ec
  1. 2
      ILSpy/Commands/DisassembleAllCommand.cs

2
ILSpy/Commands/DisassembleAllCommand.cs

@ -41,7 +41,7 @@ namespace ICSharpCode.ILSpy @@ -41,7 +41,7 @@ namespace ICSharpCode.ILSpy
if (!asm.HasLoadError) {
Stopwatch w = Stopwatch.StartNew();
Exception exception = null;
using (var writer = new System.IO.StreamWriter("c:\\temp\\disassembled\\" + asm.ShortName + ".il")) {
using (var writer = new System.IO.StreamWriter("c:\\temp\\disassembled\\" + asm.Text.Replace("(", "").Replace(")", "").Replace(' ', '_') + ".il")) {
try {
new ILLanguage().DecompileAssembly(asm, new Decompiler.PlainTextOutput(writer), new DecompilationOptions { FullDecompilation = true, CancellationToken = ct });
}

Loading…
Cancel
Save