FxCop 无法解析外部引用

发布于 2024-07-14 03:16:01 字数 473 浏览 5 评论 0原文

也许不是一个完全成熟的编程问题,但为了帮助提高质量并在我正在开发的整个应用程序中强制执行一些标准,我想使用 FxCop。

如果我尝试使用命令行

/c /f:"$(TargetPath)" /r:"C:\Program Files\Microsoft FxCop 1.36\Rules" /consolexsl:"C 作为外部工具集成到 Visual Studio 2005 中:\Program Files\Microsoft FxCop 1.36\Xml\VSConsoleOutput.xsl"

运行该工具时,无法解析我的资源层中的 Web.Servies.2.dll。

我还有一个引用我的 ResourceLayer 的业务层,它也无法解析(即,在业务层上运行 FxCop 会导致错误,指出无法引用 ResourceLayer.dll)

。如果我独立运行 FxCop,则不会出现问题。

还有其他人设法解决这个问题吗?

Perhaps not a fully fledged programming quiestion, but to help drive the quality and enforce some standards throughout the application I am working on I want to use FxCop.

If I try to integrate into into Visual Studio 2005 as an external tool using the command line

/c /f:"$(TargetPath)" /r:"C:\Program Files\Microsoft FxCop 1.36\Rules" /consolexsl:"C:\Program Files\Microsoft FxCop 1.36\Xml\VSConsoleOutput.xsl"

When running the tool it fails to resolve Web.Servies.2.dll in my resource layer.

I also have a business layer that references my ResourceLayer which also fails to resolve (i.e. running FxCop on the Business layer results in a error saying the ResourceLayer.dll cannot be referenced)

If I run FxCop standalone it works no problem.

Has anyone else managed to get around this problem?

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

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

发布评论

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

评论(1

我最亲爱的 2024-07-21 03:16:01

我已经设法解决这个问题。

通过将命令行设置为

/c /f:"$(TargetPath)" /r:"C:\Program Files\Microsoft FxCop 1.36\Rules" /consolexsl:"C:\Program Files\Microsoft FxCop 1.36\Xml\VSConsoleOutput.xsl" /directory:"C:\svn\projectDir\ExternalDLLs"

C:\svn\projectDir\ExternalDLLs 是应用程序所需的所有外部 Dll 的集合。

I have managed to fix this.

by setting the command line to

/c /f:"$(TargetPath)" /r:"C:\Program Files\Microsoft FxCop 1.36\Rules" /consolexsl:"C:\Program Files\Microsoft FxCop 1.36\Xml\VSConsoleOutput.xsl" /directory:"C:\svn\projectDir\ExternalDLLs"

where C:\svn\projectDir\ExternalDLLs is a collection of all external Dlls required by the application.

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