VS2013 Code Analysis Custom Dictionary not working

I am trying to use the visual studio code analysis function. Unfortunately (or, fortunately?), I live in Canada, and code analysis complains about my spelling of the word "color". I am trying to use a custom dictionary , but VS2013 seems to ignore it.

Here's the location of the dictionary relative to the project (and solution):

enter image description here

Here is the contents of the dictionary file:

<Dictionary>
  <Words>
    <Unrecognized>
      <Word></Word>
    </Unrecognized>
    <Recognized>
      <Word>colour</Word>
    </Recognized>
    <Deprecated>
      <Term PreferredAlternate=""></Term>
    </Deprecated>
    <Compound>
      <Term CompoundAlternate=""></Term>
    </Compound>
    <DiscreteExceptions>
      <Term></Term>
    </DiscreteExceptions>
  </Words>
  <Acronyms>
    <CasingExceptions>
      <Acronym></Acronym>
    </CasingExceptions>
  </Acronyms>
</Dictionary>

I also tried to discard the contents of the user dictionary:

<Dictionary>
  <Words>
    <Recognized>
      <Word>colour</Word>
    </Recognized>
  </Words>
</Dictionary>

Does anyone know what is happening and how can I fix it?

+4
source share
1 answer

. , , CodeAnalysisCulture MSBuild, en-CA , . :.

<CodeAnalysisCulture>en-CA</CodeAnalysisCulture>

Visual Studio , , XML CodeAnalysisDictionary. . :

+6

Source: https://habr.com/ru/post/1537041/


All Articles