Browse Source

Use location of assembly as initial directory for Generate PDB dialog.

pull/1423/head
Siegfried Pammer 7 years ago
parent
commit
4925702a1b
  1. 1
      ILSpy/Commands/GeneratePdbContextMenuEntry.cs

1
ILSpy/Commands/GeneratePdbContextMenuEntry.cs

@ -60,6 +60,7 @@ namespace ICSharpCode.ILSpy @@ -60,6 +60,7 @@ namespace ICSharpCode.ILSpy
SaveFileDialog dlg = new SaveFileDialog();
dlg.FileName = DecompilerTextView.CleanUpName(assembly.ShortName) + ".pdb";
dlg.Filter = "Portable PDB|*.pdb|All files|*.*";
dlg.InitialDirectory = Path.GetDirectoryName(assembly.FileName);
if (dlg.ShowDialog() != true) return;
DecompilationOptions options = new DecompilationOptions();
string fileName = dlg.FileName;

Loading…
Cancel
Save