locked
StyleCop and FxCop

    Question

  • Hello All,

    Can Anyone brief me what is the difference between these two tools? And Do we need to hv a separate license to use those?

    It is pretty urgent. Any help would be appreciated.

    Thanks,

    Rajiv
    .NET professional
    • Moved by Peter RitchieMVP Friday, November 07, 2008 4:47 PM fxcop-related question (Moved from Visual C# General to Visual Studio Code Analysis and Code Metrics)
    Friday, November 07, 2008 4:41 PM

Answers

  • One (StyleCop) analyses source code, the other (FxCop) analyses assemblies (compiled code).  StyleCop an do much of what FxCop can do, but it can also analyse tabbing, comments, etc.


    http://www.peterRitchie.com/blog
    • Marked as answer by Roahn Luo Monday, November 10, 2008 2:08 AM
    Friday, November 07, 2008 4:47 PM
  • Hi

    FxCop is a free tool so far, you could download it here.

    It is an application that analyzes managed code assemblies. By analysising the metadata in the assembies, it could check whether the source code you wrote obey the rules that are pre_defined, such as design, localization, performance and so on.
    The most important features of FxCop is that we could write our own custom rules, you may get some examples here: http://www.binarycoder.net/fxcop/index.html.

    As for StyleCop, you may post your thread in our StyleCop forum for more information: http://code.msdn.microsoft.com/sourceanalysis/Thread/List.aspx

    Thanks for your cooperation!
    Regards,
    Roahn
    • Marked as answer by Roahn Luo Monday, November 10, 2008 3:00 AM
    Monday, November 10, 2008 2:40 AM

All replies

  • One (StyleCop) analyses source code, the other (FxCop) analyses assemblies (compiled code).  StyleCop an do much of what FxCop can do, but it can also analyse tabbing, comments, etc.


    http://www.peterRitchie.com/blog
    • Marked as answer by Roahn Luo Monday, November 10, 2008 2:08 AM
    Friday, November 07, 2008 4:47 PM
  • Thanks Peter. Can u pls tell me about the licenses? Do we need to buy a separate license for this? We are using VS 2008. And to implements the coding standards we can use stylecop rgt? So where this FxCop can be used? What will it check in the assemblies?

    Thanks

     

    Rajiv


    .NET professional
    Friday, November 07, 2008 4:50 PM
  • Hi

    FxCop is a free tool so far, you could download it here.

    It is an application that analyzes managed code assemblies. By analysising the metadata in the assembies, it could check whether the source code you wrote obey the rules that are pre_defined, such as design, localization, performance and so on.
    The most important features of FxCop is that we could write our own custom rules, you may get some examples here: http://www.binarycoder.net/fxcop/index.html.

    As for StyleCop, you may post your thread in our StyleCop forum for more information: http://code.msdn.microsoft.com/sourceanalysis/Thread/List.aspx

    Thanks for your cooperation!
    Regards,
    Roahn
    • Marked as answer by Roahn Luo Monday, November 10, 2008 3:00 AM
    Monday, November 10, 2008 2:40 AM