简体   繁体   中英

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.

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM