Bookmark and Share

CustomDictionary Fail

by KodefuGuru 19. March 2009 13:15

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.

KodefuGuru.GetInfo()

Chris Eargle
LinkedIn Twitter Technorati Facebook

Chris Eargle
C# MVP, INETA Community Champion


MVP - Visual C#

 

INETA Community Champions
Friend of RedGate
Telerik .NET Ninja
Community blogs & blog posts

I am a #52er

I have joined Anti-IF Campaign


World Map

Tag cloud

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2010