Bookmark and Share

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.

blog comments powered by Disqus

KodefuGuru.GetInfo()

Chris Eargle
LinkedIn Twitter Technorati Facebook

Chris Eargle
Telerik Developer Evangelist, C# MVP

JustCode

Telerik .NET Ninja

 

INETA Community Speakers Program

 

MVP - Visual C#

 

Friend of RedGate

World Map

Tag cloud

Month List

Disclaimer

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

© Copyright 2010
Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer’s view in any way.