Marko Apfel - Afghanistan/Belgium/Germany

Management, Architecture, Programming, QA, Coach, GIS, EAI

  Home  |   Contact  |   Syndication    |   Login
  187 Posts | 2 Stories | 201 Comments | 4 Trackbacks


Twitter | LinkedIn | Xing


Post Categories



Enterprise Library


SQL Server


Using a project-specific custom disctionary for FxCop and FxCop build tasks is very simple. The FxCopCmd call in the FxCop-target offers the parameter /dictionary:<DictionaryName> for that.

But for Visual Studio a little bit more steps are needed. And these steps musst me gone for all projects.

Add the custom dictionary as a link to each project. I organize such links under the special Properties-folder. So normally these links dont violate my eyes ;-)

Next step requieres editing of the csproj-files. Either you open these files with an other editor or you unload the projects and edit these files with Visual Studio.

The following lines must inserted for a custom dictionary named FxCop.CustomDictionary.xml:

    <CodeAnalysisDictionary Include="..\FxCop.CustomDictionary.xml">
posted on Friday, July 2, 2010 11:27 AM