如何抑制 msbuild 中的 DISPARAMS 警告?

发布于 2024-08-24 13:50:53 字数 349 浏览 4 评论 0原文

我有一堆 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

从此见与不见 2024-08-31 13:50:53

您可以使用 pragma 关键字禁用特定警告。

You can use the pragma keyword to disable specific warnings.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文