如何修复尝试使用 FxCop 自省引擎时出现的此异常?

发布于 2024-07-25 13:19:54 字数 290 浏览 2 评论 0原文

当我尝试使用 FxCop 自省引擎时遇到异常:

Could not load file or assembly 'Microsoft.Cci, Version=9.0.0.0, 
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. 
An attempt was made to load a program with an incorrect format.

此异常是什么意思以及如何修复它?

I am getting an exception when I try to use the FxCop introspection engine:

Could not load file or assembly 'Microsoft.Cci, Version=9.0.0.0, 
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. 
An attempt was made to load a program with an incorrect format.

What does this exception mean and how can I fix it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

别再吹冷风 2024-08-01 13:19:54

好的,修好了。 FxCop 程序集是 32 位,我的项目是 64 位。 将构建更改为 x86,问题已解决。

Ok, fixed it. FxCop assemblies are 32bit, my project was 64bit. Changed the build to x86 and the problem is fixed.

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