Browse Source

try to create an IAssemblyModel for assemblies that cannot be found in the IClassBrowser

newNRILSpyDebugger
Siegfried Pammer 12 years ago
parent
commit
7fae7ab4fb
  1. 2
      src/AddIns/DisplayBindings/ILSpyAddIn/ILSpyParser.cs

2
src/AddIns/DisplayBindings/ILSpyAddIn/ILSpyParser.cs

@ -70,6 +70,8 @@ namespace ICSharpCode.ILSpyAddIn @@ -70,6 +70,8 @@ namespace ICSharpCode.ILSpyAddIn
DecompiledTypeReference reference = DecompiledTypeReference.FromFileName(fileName);
if (reference != null) {
var model = SD.GetService<IClassBrowser>().FindAssemblyModel(reference.AssemblyFile);
if (model == null)
model = SD.AssemblyParserService.GetAssemblyModelSafe(reference.AssemblyFile, true);
if (model != null)
return SD.AssemblyParserService.CreateCompilationForAssembly(model, true);
}

Loading…
Cancel
Save