Skip to content
| Marketplace
Sign in
Azure DevOps>Azure Pipelines>Code Analysis
Code Analysis

Code Analysis

Total ALM

|
1,199 installs
| (7) | Free
Tools for building and releasing.
Get it free

How to use Code Analysis build / release tasks

  • Add a new task and select Code Analysis.

tfs-cli

Field Information Required
Rule Set Built-in rule sets. Yes
Build Directory Directory which your (exe's/dll's) reside in. Example: $(build.sourcesDirectory)\Demo\Example\bin Yes
File's Comma-Delimitied file names to run code analysis on. Example: Example.dll, Example.Data.dll Yes
Output File Output file for the results to be written too. By default the output is written using FxCopReport.xsl. Example: $(build.sourcesDirectory)\Demo\Example\bin\codeanalysisresult.html Yes
Include Summary Display's summary after analysis. The summary shows the number of items found, how many items were new, and the running time for the analysis. *
Verbose (Advanced) Provides verbose output during analysis *
Rule Set Directory (Advanced) Provides a way to specify a alternative rule set directory. No
XSL Template (Advanced) By Default the output file is written using FxCopReport.xsl. Use this field to specify a alternative xsl file. No
FxCop Executable Path (Advanced) By Default the this task will look for the static code analysis under C:\Program Files (x86)\Microsoft Visual Studio 12.0 and C:\Program Files (x86)\Microsoft Visual Studio 14.0. Use this field to specify a alternative FxCop location. No

tfs-cli

Output

tfs-cli

Example Report (HTML)

tfs-cli

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft