Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

warnings about mystery interfaces in C# projects

Every time I build my C# Solution, I get a handful of warnings about interfaces that I've never seen or written. I tried Googling for some of them, but get no hits. Could these possibly be buried in an assembly I'm referencing? If so, is there any way to make these warnings go away?

Interface 'IAlertable' is marked as [dual], but does not derive from IDispatch. It will be converted as an IUnknown-derived interface.

Interface 'ICustomizationPermissionsReports' is marked as [dual], but does not derive from IDispatch. It will be converted as an IUnknown-derived interface.

Interface 'IAlertable2' is marked as [dual], but does not derive from IDispatch. It will be converted as an IUnknown-derived interface.

like image 991
Sarah Vessels Avatar asked Jun 17 '10 13:06

Sarah Vessels


2 Answers

They must come form a COM assembly you are referencing. You could try to find out which one. It looks like the wrapper code was written/generated incorrectly.

And Visual Studio does have a "suppress warnings: " text box but I am at a loss as to what to type there.
Project Properties, Build

like image 142
Henk Holterman Avatar answered Nov 18 '22 12:11

Henk Holterman


These are interfaces to HP Quality Center OTA-API "Interop.TDAPIOLELib", an ActiveX COM Type Library. Check your references.

like image 30
Tim Avatar answered Nov 18 '22 13:11

Tim