Marko Apfel - Afghanistan/Belgium/Germany

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

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

News



Twitter | LinkedIn | Xing

Archives

Post Categories

BizTalk

C#

Enterprise Library

SAP

SQL Server

Technologie

Renaming the default custom dictionary from CustomDictionary.xml to an other name – for instance FxCop.CustomDictionary.xml needs some additional changes to work in involved applications.

Visual Studio Team System code analysis

For Visual Studio Team System code analysis this file should be added as a link to all projects and setted to be the Build Action CodeAnalysisDirectory.

Build target

In a build target the command line tool FxCopCmd should be called with the /dictionary parameter:

<Target Name="FxCop">
<
Exec
Command="&quot;$(ProjectDir)..\..\build\FxCop\FxCopCmd.exe&quot;
/file:&quot;$(TargetPath)&quot;
/project:&quot;$(ProjectDir)..\EsriDE.SfgPraxair.FxCop&quot;
/directory:&quot;$(ProjectDir)..\..\lib\Esri.ArcGIS&quot;
/directory:&quot;$(ProjectDir)..\..\lib\Microsoft&quot;
/dictionary:&quot;$(ProjectDir)..\FxCop.CustomDictionary.xml&quot;
/out:&quot;$(OutDir)..\$(ProjectName).FxCopReport.xml&quot;
/console /forceoutput /ignoregeneratedcode">
</
Exec>
<
Message Text="FxCop finished." />
</
Target>

FxCop-GUI (standalone application)

In FxCop-GUI is no option to specify an own file name – but you could add a hint in the FxCop project file.

Open your this file and look for the line:

<CustomDictionaries SearchFxCopDir="True" SearchUserProfile="True" SearchProjectDir="True" />

 

Then change it to:

<CustomDictionaries SearchFxCopDir="True" SearchUserProfile="True" SearchProjectDir="True">
<
CustomDictionary Path="FxCop.CustomDictionary.xml"/>
</
CustomDictionaries>

 

Ready :-)

posted on Tuesday, May 11, 2010 5:46 PM