StyleCop的命令行使用方法:
Usage:
StyleCopCmd [options] [path]
Options:
-a Process all source files found under the start path (default)
-cs {file} Analyze the specified file.
-f Perform a full analyze (ignore cached results)
-u Do not write results cache files.
-o {file} Apply the given StyleCop options file to all projects and files
-l {file} Save violation report at the given location. If omitted, saves
StyleCopViolations.xml in the current directory.
-p {path} Attempts to discover StyleCop AddIn modules under the given
path. This flag may be specified multiple times to search under
multiple paths
-i Ignore the default StyleCop AddIn path under the All Users\\Applica
tion Data folder
Conditional Compilation Flags:
-define:FLAG1;FLAG2;FLAG3
Path:
Specifies the path to begin search for source files.
If this is omitted, uses the current directory as the start path.
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/