I have a 'Debug|Any CPU' build with Code Analysis enabled in the configuration, and in the TFSBuild.proj script.
The code analysis runs and I end up with a *.codeanalysis file with the warnings/errors.
The code analysis results do not show up in the build details screen like shown at this site: http://msdn2.microsoft.com/en-us/vstudio/aa718459.aspx
I only end up with:
- Result details for Any CPU/Debug
- Associated changesets
- Associated work items
There is no "Compilation and code analysis errors and warnings" as described on that page.
I have Visual Studio Team Suite installed on my workstation, and TE for Devs + TE for Testers on the build server.
What is required for this to work
Regards,
Grant Holliday

Integrated Code Analysis with Team Build
Wei Wang father of twins
The code analysis errors and warnings are put into the warehouse as part of the build project facts as "Static Analysis Errors" and "Static Analysis Warnings."
Buck
Claudeb1965
Hi Grant,
Do you get CA warnings like the ones you getwhen you build in your IDE
I do. I've attached a screen shot of what I see after the build.
DaveTaylor
Wow, that looks pretty ancient. That must have been what the build report looked like two years ago. I've notified someone about that page being out of date.
Buck
NetPochi
Excellent! I should've looked for myself. This is exactly what I'm after.
For those looking for more: http://msdn2.microsoft.com/en-us/library/ms244712(VS.80).aspx
Thanks again Buck!
Kamen
So is there any integration between the output of code analysis and team build reports
Basically we want to report on the number of errors/warnings from code analysis and ultimately plot it on the Quality Indicators report.
jayakhanna