How to use custom ruleset

Procedure

  • Step 1
Add new folder named 'CodeAnalysis' to your solution directory (the directory that exists .sln file) or project directory (the directory that exists .*proj file).
AddDirectory.png
  • Step 2
Add a new ruleset file in the above directory.
AddRuleSet.png
  • Step 3
Edit the added ruleset file.
EditRuleSet.png
  • Step 4
Right click on the solution/project and select [Context Menu] > [Edit Code Analysis Configuration].
EditCodeAnalysisConfiguration.png
  • Step 5
Change value of the 'Analyze code with RuleSet' option to your custom ruleset name.
SelectRuleSet.png
  • Step 6
Click [Save] button to save option values and to close window.

Last edited Dec 4, 2011 at 1:47 PM by sasaminn, version 3

Comments

shals1031 Apr 9, 2013 at 11:44 AM 
After doing this also it doesnt work.... sorry to bring this topic again..