简体   繁体   English

创建可读的FxCop报告

[英]Creating a readable FxCop report

Is there a good tool that can convert the XML output of FxCop into something that can be put into a Word document? 有没有一个很好的工具可以将FxCop的XML输出转换为可以放入Word文档的东西? I'd prefer not to write an XML-FO XSLT transform, maybe someone did something like that already. 我不想写一个XML-FO XSLT转换,也许有人做过类似的事情。

Somebody did. 有人做了。 You'll find several .xsl files in the Xml subdirectory of the FxCop install directory. 您将在FxCop安装目录的Xml子目录中找到几个.xsl文件。

  • FxCopReport.xsl FxCopReport.xsl
  • FxCopRichConsoleOutput.xsl FxCopRichConsoleOutput.xsl
  • VSConsoleOutput.xsl VSConsoleOutput.xsl

Following worked better for me. 以下对我来说效果更好。

  1. select all the lines in the grid, 选择网格中的所有行,
  2. do a right click, Copy as , CSV. 右键单击,复制为,CSV。

Go to excel and import the text as comma separated content. 转到Excel并将文本导入为逗号分隔的内容。

我发现您可以简单地复制并粘贴到电子表格中并将其粘贴到Word中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM