Permalink
Browse files

Adjust output of ICSharpCode.Decompiler.Console ShowIL. Fix #1284.

  • Loading branch information...
siegfriedpammer committed Sep 28, 2018
1 parent b680ffd commit 1f9ea4c3483e35d30869184f7b9e745a4f3c8fe1
Showing with 2 additions and 2 deletions.
  1. +2 −2 ICSharpCode.Decompiler.Console/Program.cs
@@ -69,7 +69,7 @@ static int Main(string[] args)
if (outputOption.HasValue()) {
string directory = outputOption.Value();
string outputName = Path.GetFileNameWithoutExtension(inputAssemblyFileName.Value);
output = File.CreateText(Path.Combine(directory, outputName) + ".ILCode.txt");
output = File.CreateText(Path.Combine(directory, outputName) + ".il");
}
ShowIL(inputAssemblyFileName.Value, output);
} else {
@@ -113,7 +113,7 @@ static void ShowIL(string assemblyFileName, TextWriter output)
decompiler.TypeSystem.MainModule.PEFile,
decompiler.TypeSystem.MainModule.TypeDefinitions.Select(x => (TypeDefinitionHandle)x.MetadataToken));
output.WriteLine($"IL code: {decompiler.TypeSystem.MainModule.AssemblyName}");
output.WriteLine($"// IL code: {decompiler.TypeSystem.MainModule.AssemblyName}");
output.WriteLine(textOutput.ToString());
output.Flush();
}

0 comments on commit 1f9ea4c

Please sign in to comment.