From 7fae7ab4fb162a8086a2a21614819f9b2363f8b6 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Wed, 21 Aug 2013 00:41:36 +0200 Subject: [PATCH] try to create an IAssemblyModel for assemblies that cannot be found in the IClassBrowser --- src/AddIns/DisplayBindings/ILSpyAddIn/ILSpyParser.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/AddIns/DisplayBindings/ILSpyAddIn/ILSpyParser.cs b/src/AddIns/DisplayBindings/ILSpyAddIn/ILSpyParser.cs index de6f80e841..e69cc37b58 100644 --- a/src/AddIns/DisplayBindings/ILSpyAddIn/ILSpyParser.cs +++ b/src/AddIns/DisplayBindings/ILSpyAddIn/ILSpyParser.cs @@ -70,6 +70,8 @@ namespace ICSharpCode.ILSpyAddIn DecompiledTypeReference reference = DecompiledTypeReference.FromFileName(fileName); if (reference != null) { var model = SD.GetService().FindAssemblyModel(reference.AssemblyFile); + if (model == null) + model = SD.AssemblyParserService.GetAssemblyModelSafe(reference.AssemblyFile, true); if (model != null) return SD.AssemblyParserService.CreateCompilationForAssembly(model, true); }