Browse Source

Add version to output filename in DisassembleAllCommand

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

2
ILSpy/Commands/DisassembleAllCommand.cs

@ -41,7 +41,7 @@ namespace ICSharpCode.ILSpy
if (!asm.HasLoadError) { if (!asm.HasLoadError) {
Stopwatch w = Stopwatch.StartNew(); Stopwatch w = Stopwatch.StartNew();
Exception exception = null; 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 { try {
new ILLanguage().DecompileAssembly(asm, new Decompiler.PlainTextOutput(writer), new DecompilationOptions { FullDecompilation = true, CancellationToken = ct }); new ILLanguage().DecompileAssembly(asm, new Decompiler.PlainTextOutput(writer), new DecompilationOptions { FullDecompilation = true, CancellationToken = ct });
} }

Loading…
Cancel
Save