关于TFS 2010 Build的奇怪代码分析问题
最近几天我遇到了一些奇怪的问题。今天的奇怪问题是关于代码分析和TFS 2010 构建。
在我们将 TFS 从 2008 升级到 2010 后,我们将解决方案从 Visual Studio 2008 升级到 2010。升级时没有出现错误,但我们在代码分析方面看到了奇怪的事情。
不久之后的问题是,FxCop 结果因从 tfs 2010 构建自动运行或从命令提示符手动运行而有所不同。即使它们都使用相同的命令参数和值。
例如,如果我在 TFS 构建中运行 FxCop,则会收到 7 个错误,但如果我使用在构建日志中看到的命令通过命令提示符运行 FxCop,则会收到 133 个错误。
什么可能导致这些差异?
I have got strange problems in the last few days. Today's strange problem is about Code Analysis and TFS 2010 Builds.
After we had upgraded our TFS from 2008 to 2010, we then upgraded our solutions from Visual Studio 2008 to 2010. There were no errors while upgrading, but we saw strange things about code analysis.
Shortly the problem is, FxCop results differ by running automatically from tfs 2010 build or running manually from command prompt. Even though they are both using the same command parameters and values.
For example i̇f i run FxCop in the TFS build, I get 7 errors, but i̇f I run FxCop by command prompt using the command I see in the build log, I get 133 errors.
What could cause these differences?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否已验证您的 VS 和命令行分析运行是否使用相同的规则集?
Have you verified that your VS and command line analysis runs are using the same rule sets?
我解决了这个问题。
这是关于 CustomDictionary 路径。
我删除了 FXCop\CustomDictionary.xml 进行测试,然后就忘记了。我更换了CustomDictionary,一切都正常了。
I solved this problem.
It was about CustomDictionary path.
I deleted FXCop\CustomDictionary.xml for test and forget. I replaced CustomDictionary and everything became normal.