开发者

Strange Code Analysis Problem About TFS 2010 Build

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 er开发者_StackOverflow中文版rors.

What could cause these differences?


Have you verified that your VS and command line analysis runs are using the same rule sets?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜