代码分析输出文件 [英] Code Analysis Output File

查看:72
本文介绍了代码分析输出文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试像过去那样设置Visual Studio 2017,并且它曾经将分析直接输出到文件,但现在我似乎无法弄清楚如何做到这一点。 ..


任何人都可以帮助我吗?


我希望能够看到XML文件的所有警告(以及可能的错误)。


谢谢!

解决方案

嗨朋友,


欢迎来到MSDN论坛。


是否要获取代码分析日志的XML文件?如果是这样,XML报告默认在项目输出文件夹下生成,请检查

这个类似的问题


在此之前,请右键单击项目名称并选择"属性",转到"代码分析"选项卡,选中"在构建时启用代码分析"选项"如下所示,按
Ctrl + S保存,然后单击打开按钮打开规则集,检查所有规则以应用更多代码分析规则。




最好的问候,


萨拉


I'm trying to set up Visual Studio 2017 like I used to have it, and it used to output the analysis straight to a file, but now I can't seem to figure out how to do that...

Can anyone help me?

I like to be able to see all the warnings (and possibly errors) the XML file.

Thanks!

解决方案

Hi friend,

Welcome to the MSDN forum.

Do you want get the XML file of your Code Analysis log? If so, the XML report default generated under your project output folder, please check this similar issue.

Before it, please right click the project name and choose Properties, go to Code Analysis tab, check the option "Enable Code Analysis on Build" as below, press Ctrl + S to save it, then click Open button to open the rule set, check all rules to apply more code analysis rules.

Best regards,

Sara


这篇关于代码分析输出文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆