SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to use the Micrsoft Online Code Analysis Framework for our Environment to check the Solutions. It is possible to modify the Custom Rules?

Micrsoft Online Code Analysis Framework

share|improve this question

As the rules are compiled, they're just FxCop rules, you can't simply edit an xml file or something.

It is fairly easy to create your own FxCop rules, but there is very little documentation available. We had a few issues with the default MSOCAF rules, so I decompiled them using ,NET Reflector, fixed the issue, targeted them to FxCop 10 instead of 1.36 and they are now part of the automated build system in TFS.

See my blog for details:

The code, fixed for use in FxCop 10 is now available on Codeplex:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.