I would like to open FxCop.exe (not the command line version) from VS 2010 with custom dictionary (Stored in a given path, not necessarily in FxCop folder) as a parameter. Can someone tell me how to do this?
Asked
Active
Viewed 148 times
1 Answers
0
This can't be done via the command line. However, (from a bit of Reflector spelunking) it looks like the UI application probably supports adding custom dictionaries via CustomDictionary
nodes inside the CustomDictionaries
node of an .fxcop project file.

Nicole Calinoiu
- 20,843
- 2
- 44
- 49
-
You are correct. It cannot be done via the command line directly. – Arun Jan 17 '13 at 13:17
-
You can now (with at least with the FXCop version that ships with VS2013) for the command line add the argument `/dictionary:..\SomeFolder\CustomDictionary.xml`. To add it to the command that Visual Studio runs add `
/dictionary:..\SomeFolder\CustomDictionary.xml ` to your (cs|vb)proj file – Bigwave Apr 10 '14 at 10:43 -
@Bigwave: FxCop.exe does not support the same command line options as FxCopCmd.exe. The last version of FxCop.exe that was released shipped with FxCop 10.0. No version of Visual Studio so far has included the FxCop.exe UI application. – Nicole Calinoiu Apr 10 '14 at 11:56