指定要CustomDictionary文件进行了StyleCop拼写检查路径 [英] Specify path to CustomDictionary file for StyleCop spellchecking

查看:210
本文介绍了指定要CustomDictionary文件进行了StyleCop拼写检查路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

拼写检查评价加到了StyleCop的最新版本。看来我可以重用现有的CustomDictionary文件(我的FxCop的创建)用了StyleCop。 SA1650规则文档不说,这是可能的。但在发行说明的版本,39年7月4日我看到

Spell checking of the comments was added to the recent versions of StyleCop. It seems I can reuse my existing CustomDictionary file (that I created for FxCop) with StyleCop. SA1650 rule documentation does not say that it is possible. But in release notes for version 4.7.39 I see

添加支持在settings.StyleCop指定词典文件夹   文件。

Add support for specifying dictionary folders in the settings.StyleCop file.

我如何配置了StyleCop来搜索我的解决方案的根文件夹此文件?

How do I configure StyleCop to search for this file in the root folder of my solution?

推荐答案

添加一个名为 Settings.StyleCop 文件解决方案中的根目录下,其内容如下:

Add a file named Settings.StyleCop in your solution root directory with the following content:

<StyleCopSettings Version="105">
  <GlobalSettings>
    <CollectionProperty Name="DictionaryFolders">
      <Value>**my-dictionary-folder**</Value>
    </CollectionProperty>
  </GlobalSettings>
</StyleCopSettings>

您更换我的词典文件夹包含您CustomDictionary.xml文件中的相对路径的文件夹。

Where you replace my-dictionary-folder with the relative path to the folder containing your CustomDictionary.xml file.

这篇关于指定要CustomDictionary文件进行了StyleCop拼写检查路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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