Jader Dias
Jader Dias

Reputation: 90475

How to execute Visual Studio Code Analysis from the command line?

Is it possible? Does it generate a report file?

Upvotes: 8

Views: 6882

Answers (1)

Nicole Calinoiu
Nicole Calinoiu

Reputation: 20992

The FxCopCmd.exe command line tool can be used to run code analysis (which is the same thing as FxCop analysis) from the command line. In a VS 2010 installation that includes code analysis, you would typically find FxCopCmd.exe in the following folder: \Team Tools\Static Analysis Tools\FxCop.

FxCopCmd.exe can emit a report file. For details, see its command line options.

Upvotes: 7

Related Questions