This project is read-only.

Lephone FxCop Rules

Lephone FxCop Rules is the custom rules for FxCop.

For now it includes 2 rules:
  • function should less than limited lines
  • file should less than limited lines.


  • Install Microsoft FxCop 1.36 to your pc.
  • Download and unpack it to a folder.
  • Run install.bat in this folder (In vista you need run it by administrator mode.)

Install source code

  • Download the source code package and unpack it to a folder.
  • Create the folder "Bin" in the install path.
  • Copy the folder "Microsoft FxCop 1.36" in the install path.
  • Copy "Lephone.Util.dll" to folder "Microsoft FxCop 1.36".
  • In FxCopCmd.exe.config, add following code to appSettings section:
<add key="FunctionLinesLimitation" value="70" />
<add key="FileLinesLimitation" value="700" />


FxCop download: My other project(s): My Homepage, Blog(Chinese version 点睛工作室) and email:

Last edited May 19, 2008 at 4:50 PM by lifeng, version 9