如何抑制 msbuild 中的 DISPARAMS 警告?
我有一堆 COM 依赖项,并且我的构建脚本发出大量以下警告:
c:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets : 警告 : 类型库导入器 无法将签名转换为 成员“DISPPARAMS.rgvarg”。 c:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets : 警告 : 类型库导入器 无法将签名转换为 会员 'DISPPARAMS.rgdispidNamedArgs'。
这真的很烦人。我该如何压制他们?
I have bunch of COM dependencies and my build script emits tons of following warnings:
c:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets
: warning : The type library importer
could not convert the signature for
the member 'DISPPARAMS.rgvarg'.
c:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets
: warning : The type library importer
could not convert the signature for
the member
'DISPPARAMS.rgdispidNamedArgs'.
This is really annoying. How may I suppress them?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 pragma 关键字禁用特定警告。
You can use the pragma keyword to disable specific warnings.