问题描述
我想在我的解决方案目录中放置一个 customdictionary.xml 文件并对其进行源控制,以便其他开发人员也可以利用这一点.根据 this StyleCop link 我必须将它放在 stylecop.dll 旁边在程序文件下.
I want to place a customdictionary.xml file inside my solution directory and have it source controlled so other developers can also take advantage of this. According to this StyleCop link I have to place it next to the stylecop.dll which is under program files.
它还谈到 Settings.StyleCop 文件,我似乎没有.这是每个项目还是每个解决方案?
It also talks about Settings.StyleCop file, which I don't seem to have. Is this per project or per solution ?
文件中还提到了custom.dic,这和customdictionary.xml文件有什么不同吗?
The file also talks about a custom.dic, is this different to the customdictionary.xml file?
推荐答案
如果您打开 StyleCop 设置编辑器,您可以创建一个 Settings.StyleCop
文件,该文件准确指明您要评估的规则您的项目/解决方案.如果您打开设置编辑器的拼写选项卡,您可以在其中指定一个或多个文件夹,StyleCop 将在其中尝试查找其他 CustomDictionary.xml 文件(您可能需要调整窗口大小以查看此部分)
If you open the StyleCop settings editor, you can create a Settings.StyleCop
file which indicates exactly which rules you want to evaluate for your project/solution. If you open the Spelling tab of the settings editor, there is a section where you can specify one or more folders where StyleCop will try and find additional CustomDictionary.xml files (you may need to resize the window to see this part)
这篇关于Stylecop:源代码控制 CustomDictionary.xml 字典?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!