Tuesday 28 October 2008

Using a custom dictionary for FxCop in Visual Studio 2008

A colleague of mine has spotted an excellent post on how to use Custom Dictionaries with FxCop in Visual Studio 2008.

The post is here: http://duncanjasmith.blogspot.com/2008/07/creating-custom-dictionary-for-code.html

The short story is that in VS2008 there is a "BuildAction" of "CodeAnalysisDictionary" that you can apply to Project Items. Copy and edit the built-in Custom Dictionary from "%systemdrive%\Program Files\Microsoft Visual Studio 9.0\Team Tools\Static Analysis Tools\FxCop\CustomDictionary.xml" and away you go. Read his post for details on how to have an FxCop Custom Dictionary applied Solution wide.

0 comments:

About Me