Apparently I have 3 dlls with the same namespace (however the object browser says it only exists in one).
Usually in Resharper I can automatically resolve a reference, but in this case it won't do it. The type in question is ItemEvents_10_Event
and when I search for that type here's what comes up:
I've tried prefixing the interface with Microsoft.Interop.Outlook
, but it still complains with the same message.
Here's the usage in case that helps:
((ItemEvents_10_Event)MailItem).Send += OnSend;
((ItemEvents_10_Event)MailItem).BeforeAttachmentAdd += BeforeAttachmentAdd;
((ItemEvents_10_Event)MailItem).Write += OnInspectorSaved;
Note that I do not get any compile or runtime errors (at runtime my method never gets invoked), however the class has squiggly red lines under them which alerts me there is an issue.