FxCop 无法解析外部引用
也许不是一个完全成熟的编程问题,但为了帮助提高质量并在我正在开发的整个应用程序中强制执行一些标准,我想使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经设法解决这个问题。
通过将命令行设置为
C:\svn\projectDir\ExternalDLLs 是应用程序所需的所有外部 Dll 的集合。
I have managed to fix this.
by setting the command line to
where C:\svn\projectDir\ExternalDLLs is a collection of all external Dlls required by the application.