CustomDictionary Fail

When I ran code analysis on my project, I predictably had some complaints concerning naming. Obviously, kodefu is not a dictionary term. The solution is to add a custom dictionary to the project.

<Dictionary>
  <
Words>
    <
Recognized>
      <
Word>Kodefu</Word>
    </
Recognized>
  </
Words>
</
Dictionary>

I added this dictionary and reran code analysis. Complete fail; it still did not recognize kodefu.

Whoever wrote the msdn documentation forgot to mention an essential step for adding a custom dictionary to a project. Luckily, argt.home added community content to the article describing the steps necessary to get it working. You must change the item's build action to CodeAnalysisDictionary.

I hope this helps if you've experienced this fail yourself.

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Print | posted on Thursday, March 19, 2009 1:27 PM

Comments on this post

No comments posted yet.

Your comment:

 (will show your gravatar)