简体   繁体   English

Visual Studio 2015中的StyleCop自定义规则集成问题

[英]Issue in StyleCop Custom Rules integration in Visual Studio 2015

I wish to use StyleCop to frame my custom rule set. 我希望使用StyleCop来构建我的自定义规则集。 I downloaded a latest version of SytleCop and I followed the implementation procedure from one of the Blog . 我下载了最新版本的SytleCop ,我遵循了其中一个博客的实施程序。

I Implemented as identical to the above said Blog. 我实现与上面说的Blog相同。

Project -> Right Click -> StyleCop Settings

在此输入图像描述

It opens the StyleCop Setting Dialogue Window using StyleCop 5.0 (build 5.0.6187.1) 它使用StyleCop 5.0 (build 5.0.6187.1)打开StyleCop设置对话窗口

在此输入图像描述

In the above window I can't able to see my Custom Rule. 在上面的窗口中,我无法看到我的自定义规则。 I opened the file explorer and navigate to the respective project's file path, there I noticed Settings.StyleCop 我打开文件浏览器并导航到相应项目的文件路径,在那里我注意到Settings.StyleCop

在此输入图像描述

I tried to open the Settings.StyleCop by double click, it's opened the Settings file using StyleCop 4.7 (4.7.55.0) 我试图通过双击打开Settings.StyleCop ,它使用StyleCop 4.7 (4.7.55.0)打开设置文件

在此输入图像描述

Kindly assist me how to Create a Custom Rule and how to apply the rule in my code ? 请帮助我如何创建自定义规则以及如何在我的代码中应用规则?

Un-Install any extension you installed via Tools -> Extensions and Updates -> StyleCop 通过工具 - >扩展和更新 - > StyleCop卸载您安装的任何扩展

在此输入图像描述

Moreover Re-Install the StyleCop (ie, Un-Install and again Install) because some of the dll won't be remove of the above said Extensions file. 此外,重新安装StyleCop (即,取消安装并再次安装),因为某些dll不会删除上述扩展文件。

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

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