Skip to content
munyabe edited this page Feb 11, 2014 · 2 revisions

Welcome to the Munyabe.FxCop.Rules wiki!

How to debug custom rules

Change the project settings for a C# debug configuration in the Property Pages window.

Debug tab

  • Start external program
    Specify the full path of FxCopCmd.exe.
    example C:\Program Files (x86)\Microsoft Fxcop 10.0\FxCopCmd.exe
  • Command line arguments
    Specify the path of the rule assembly, the target assembly and type to analyze.
    example /rule:+"Munyabe.FxCop.Rules\bin\Debug\Munyabe.FxCop.Rules.dll" /file:"Munyabe.FxCop.Rules\bin\Debug\Munyabe.FxCop.Rules.dll" /types:"Munyabe.FxCop.Test" /c
  • Working directory
    Specify the path of the project root directory to short the path of assemblies.
Clone this wiki locally