What is the best way to run and report Visual Studio 2012 code analysis in TeamCity?
The Code Analysis feature of Visual Studio performs static code analysis to help developers identify potential design, globalization, interoperability, performance, security, and a host of other categories of potential problems.
Since FxCop or Code Analysis integrates directly into MsBuild, it's probably as simple as adding /p:RunCodeAnalysis=Always
or /p:RunCodeAnalysis=True
to the MsBuild commandline when building the project. Since this will generate standard compiler warnings, TeamCity should pick them up automatically.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With