Browse Source

#1208: Prevent automatic reference load in ILLanguage, if FullDecompilation is active.

pull/1213/head
Siegfried Pammer 7 years ago
parent
commit
549142c6f4
  1. 4
      ILSpy/Languages/ILLanguage.cs

4
ILSpy/Languages/ILLanguage.cs

@ -147,6 +147,9 @@ namespace ICSharpCode.ILSpy @@ -147,6 +147,9 @@ namespace ICSharpCode.ILSpy
var module = assembly.GetPEFileOrNull();
var metadata = module.Metadata;
var dis = CreateDisassembler(output, options);
// don't automatically load additional assemblies when an assembly node is selected in the tree view
using (options.FullDecompilation ? null : LoadedAssembly.DisableAssemblyLoad()) {
dis.AssemblyResolver = module.GetAssemblyResolver();
if (options.FullDecompilation)
dis.WriteAssemblyReferences(metadata);
@ -162,3 +165,4 @@ namespace ICSharpCode.ILSpy @@ -162,3 +165,4 @@ namespace ICSharpCode.ILSpy
}
}
}
}

Loading…
Cancel
Save