获取代码检查结果

Get the results of Code inspections

我安装了Resharpers command line tool。然后我试了

InspectCode SolutionFile.sln > errors.txt.

errors.txt中的输出是

JetBrains Inspect Code 9.1 
Running in 64-bit mode, .NET runtime 4.0.30319.34014 under Microsoft Windows     NT 6.2.9200.0
Solution-wide analysis is DISABLED
Running inspections
Inspecting <Project>\Common\Bindable.cs
Inspecting <Project>\Common\Converter.cs and so on..

如何将生成的输出 .tmp 文件从 command prompt 转换为 html 文件?

您需要使用/o=命令行参数来指定输出文件的写入位置。默认情况下,它会转到 %TEMP% 文件夹。此输出文件是一个 xml 文件,您可以随后使用样式表对其进行分析或转换。有关命令行选项的更多详细信息 here.