locked
Integrating stylecop with VS2010 code analyzer. RRS feed

  • Question

  • hi,

    Is it possible to integrate stylecop with VS2010 code analyzer instead VS 2010 IDE so that I can get the analysis done in a single step?

    Thanks

     

    • Moved by lucy-liu Thursday, December 1, 2011 5:43 AM it is a code analysis issue (From:Visual Studio Extensibility)
    Wednesday, November 30, 2011 12:35 PM

Answers

  • And due to the fact that StyleCop checks the sourcefiles and FxCop (Code Analysis) checks the compiled Assemblies, they're quite different and will thus require two passes.

    Microsoft is currently working on Roslyn. I've talked to the product team at the ALM Summit, and it might be possible to build both StyleCop and FxCop on top of that, it's a large effort and since Roslyn isn't scheduled to appear after Dev11, these tools probably won't integrate until Dev12 comes out (which of course will take a while), and that also depends on whether there's enough budget to actually migrate these tools, as they're working as-is.


    My blog: blog.jessehouwing.nl
    • Edited by Jesse HouwingMVP Thursday, December 1, 2011 11:06 AM
    • Marked as answer by voodem Friday, December 2, 2011 7:01 AM
    Thursday, December 1, 2011 10:58 AM

All replies

  • Hi Vijaya,

     

    Based on my understanding, the VS2010 code analysis tool is built into Visual Studio 2010.

     

    StyleCop 4.4 Beta 1 is now available for download from http://stylecop.codeplex.com/. This release provides full support for C# 4.0 syntax, and also provides integration into VS2010.

     

    StyleCop and VS2010 code analysis tool, they are different. StyleCop only works on C# source files. For more information, see http://www.itscodingtime.com/post/Visual-Studio-Code-Analysis-vs-FxCop-vs-StyleCope280a6-whats-the-diff.aspx.

     

    Reference:

    http://blogs.msdn.com/b/sourceanalysis/archive/2010/05/06/stylecop-4-4.aspx

     

    Thanks,


    Jack Zhai [MSFT]
    MSDN Community Support | Feedback to us
    Thursday, December 1, 2011 8:17 AM
    Moderator
  • And due to the fact that StyleCop checks the sourcefiles and FxCop (Code Analysis) checks the compiled Assemblies, they're quite different and will thus require two passes.

    Microsoft is currently working on Roslyn. I've talked to the product team at the ALM Summit, and it might be possible to build both StyleCop and FxCop on top of that, it's a large effort and since Roslyn isn't scheduled to appear after Dev11, these tools probably won't integrate until Dev12 comes out (which of course will take a while), and that also depends on whether there's enough budget to actually migrate these tools, as they're working as-is.


    My blog: blog.jessehouwing.nl
    • Edited by Jesse HouwingMVP Thursday, December 1, 2011 11:06 AM
    • Marked as answer by voodem Friday, December 2, 2011 7:01 AM
    Thursday, December 1, 2011 10:58 AM