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); }