Startup and Reporting Visual Studio 2012 Code Analysis in TeamCity

What is the best way to run and run Visual Studio 2012 code analysis report in TeamCity?

+6
source share
2 answers

Since FxCop or Code Analysis integrates directly with MsBuild, it is probably as simple as adding /p:RunCodeAnalysis=Always or /p:RunCodeAnalysis=True to the MsBuild command line when creating a project. Since this will generate standard compiler warnings, TeamCity should automatically pick them up.

+5
source

Visual Studio 2010+ Code Analysis (based on) FxCop 10.0. You can simply add an assembly step of type "FxCop".

When the "Report XSLT file" option is configured, the assembly runner will output an HTML report. FxCop 10.0 contains the default XSLT file in the "% system.FxCopRoot% / Xml / FxCopReport.xsl" section to generate a default HTML report.

0
source

Source: https://habr.com/ru/post/956654/


All Articles