问题描述
拼写检查评价加到了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指定词典文件夹 文件。
我如何配置了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拼写检查路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!