locked
stylecop analysis RRS feed

  • Question

  • I have an expres VS2010. I need to do styleCop code analysis without building prograv every time. thanks..
    Monday, October 27, 2014 11:00 AM

Answers

  • "I have an expres VS2010"

    Express editions do not support the use of extensions. As such you cannot get StyleCop to integrate with VS as is standard.

    They do document how to get partial integration at build time by adding the appropriate targets files to your projects.  This is a manual step and will require a build.

    " I need to do styleCop code analysis without building prograv every time. thanks.."

    StyleCop requires a build in order to analyze your code.  There currently isn't a way to run the tool outside of a build.

    Michael Taylor
    http://blogs.msmvps.com/p3net

    • Proposed as answer by Magnus (MM8)MVP Monday, October 27, 2014 4:17 PM
    • Marked as answer by Kristin Xie Tuesday, November 4, 2014 7:48 AM
    Monday, October 27, 2014 2:00 PM

All replies

  • According to their docs (http://stylecop.codeplex.com/documentation), it sounds like this is the supported behavior. What you might try to do is to define a project build target that just runs a style cop target instead of the full build.

    KeepMyIdentities, Your Key to Password Security. Available now on the Windows Store: http://apps.microsoft.com/webpdp/en-US/app/keepmyidentities/61a9f340-97ac-4666-beab-39f9246cb6fa

    Monday, October 27, 2014 11:10 AM
  • Here is also a nice article showing how to use SypleCop for Static Analysis, that is what you want.
    Monday, October 27, 2014 12:20 PM
  • "I have an expres VS2010"

    Express editions do not support the use of extensions. As such you cannot get StyleCop to integrate with VS as is standard.

    They do document how to get partial integration at build time by adding the appropriate targets files to your projects.  This is a manual step and will require a build.

    " I need to do styleCop code analysis without building prograv every time. thanks.."

    StyleCop requires a build in order to analyze your code.  There currently isn't a way to run the tool outside of a build.

    Michael Taylor
    http://blogs.msmvps.com/p3net

    • Proposed as answer by Magnus (MM8)MVP Monday, October 27, 2014 4:17 PM
    • Marked as answer by Kristin Xie Tuesday, November 4, 2014 7:48 AM
    Monday, October 27, 2014 2:00 PM