In my solution Code Analysis (FxCop?) is enabled for the Release configuration with the compilation constant CODE_ANALYSIS. It's running fine in Visual Studio
In my Build Condifuration of Team City I add those system build parameters:
The constants seems to be used since in the Build log the call to csc.exe contains the correct constants: /define:CODE_ANALYSIS;SILVERLIGHT;WINDOWS_PHONE
But the code analysis is not working, no error message and no message indicating that any analysis has been done.
I use the MSBUILD runner.