VS2015代码分析和CustomDictionary.xml [英] VS2015 Code Analysis and CustomDictionary.xml

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

问题描述

您好 -


我们刚刚迁移到VS2015,并为团队创建了自定义代码分析规则集。我将规则集放在共享驱动器上,以便每个人都可以点击它。 如何让VS2015的分析工具指向我在同一个共享驱动器上找到
的自定义词典?我尝试检查FXCopCmd.exe.Config,但我没有看到任何指向自定义词典的内容。  (在旧的FXCop中,我会设置/ dictionary开关,但我看不到VS2015的配置文件允许
我来修改分析工具的路径)


任何建议都将不胜感激!


谢谢,


- Sam

解决方案

嗨Sam,


据我所知,FXCop工具用于旧版本的.NET Framework。


如果你想创建在Visual Studio 2015中自定义代码分析,您可以从项目属性中选择rulset文件 - >代码分析 - >规则集 - >运行此规则集以浏览规则集文件路径。



详细步骤,请参阅以下文件:


https://msdn.microsoft.com/en-us/library/dd264949.aspx


最诚挚的问候,b
Weiwei


Hello --

We just migrated to VS2015 and I've created a custom code analysis rule set for my team. I have the rule set located on a shared drive so that everyone can hit it.  How can I get VS2015's analysis tool to point to the custom dictionary that I have located on that same shared drive? I tried checking the FXCopCmd.exe.Config, but I don't see anything in there that points to a custom dictionary.  (In old FXCop, I would have set the /dictionary switch, but I can't see the config file for VS2015 that allows me to modify the path of the analysis tool)

Any advice would be greatly appreciated!

Thanks,

--Sam

解决方案

Hi Sam,

As far as I know, the FXCop tool is used on old version of .NET Framework.

If you want to create custom Code Analysis in Visual Studio 2015, you could choose the rulset file from project Properties -> Code Analysis -> Rule Set ->Run this rule set to browser the rule set file path.

Detailed steps, please refer to following document:

https://msdn.microsoft.com/en-us/library/dd264949.aspx

Best Regards,
Weiwei


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

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