I'm using TeamCity 5.1.2 to perform my build by calling an MSBuild script. The script basically calls the MSBuild task on my Visual Studio 2010 solution file.
The projects within my solution have Visual Studio 2010 code analysis turned on so the MSBuild task also performs static analysis of my code using the Visual Studio 2010 FxCop tool.
The problem comes when I try to build with some of these code inspection messages suppressed. I have created a 'GlobalSuppressions.cs' file in my project and added the messages I want suppressed to it. Unfortunately this doesn't suppress anything when I run my TeamCity build.
I've tried running the same MSBuild script that TeamCity uses on my desktop and the messages are correctly suppressed. It is only when I build on my TeamCity server that the message suppressions are ignored at build time. I've even tried running the exact same compile commands that are executed by TeamCity (taken from the TeamCity log) on my desktop, but still the messages are suppressed when run on my desktop but not on the TeamCity server.
Does TeamCity use some weird special build argument that is hidden from sight or have some non-standard environment variables defined that could cause this?
Thanks in advance,