Browse Source

Handle BadImageFormatException when trying to load code completion info from non-.NET dll.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@6231 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
pull/1/head
Daniel Grunwald 15 years ago
parent
commit
ff3d81407a
  1. 2
      src/Main/ICSharpCode.SharpDevelop.Dom/Project/Src/ProjectContent/ProjectContentRegistry.cs

2
src/Main/ICSharpCode.SharpDevelop.Dom/Project/Src/ProjectContent/ProjectContentRegistry.cs

@ -197,6 +197,8 @@ namespace ICSharpCode.SharpDevelop.Dom @@ -197,6 +197,8 @@ namespace ICSharpCode.SharpDevelop.Dom
try {
pc = LoadProjectContent(itemInclude, itemFileName);
} catch (BadImageFormatException ex) {
HostCallback.ShowAssemblyLoadErrorInternal(itemFileName, itemInclude, ex.Message);
} catch (Exception ex) {
HostCallback.ShowError("Error loading assembly " + itemFileName, ex);
} finally {

Loading…
Cancel
Save