For VS2010, you can install the dictionary by editing the .vcxproj file and pasting this:
<ItemGroup> <CodeAnalysisDictionary Include="c:\temp\mydictionary.xml" /> </ItemGroup>
Change the path to your dictionary.
To make this a permanent parameter for all your C ++ projects, go to c: \ program files \ msbuild \ microsoft.cpp \ v4.0 and edit the Microsoft.Cpp.props file by pasting the above (make a backup please) .
To make sure that this change is effective, use Tools + Options, Projects and Solutions, Build and Run, Project Project Log File MSBuild verbosity = Diagnostics. Rebuild your project, look in the .log file and make sure fxcopcmd.exe is running with the / dictionary option.
Both approaches worked well on my machine.
source share