Visual Studio Toolbox: Analyzing Your Code

Download this episode

Download Video


In this episode, Robert looks at how you can analyze your code to see if it meets coding standards. Standards are made up of rules and Visual Studio includes about 200 rules organized into rule sets. If you are using Visual Studio Premium or Ultimate, you can use the managed code analysis tool to check your code and see where your code violates the rules. If you don't have Premium or Ultimate, you can use FxCop, a standalone code analysis tool that is part of the Windows SDK.



Available formats for this video:

Actual format may change based on video formats available and browser capability.

    The Discussion

    • User profile image

      Great! You didn't get to fixing the naming on your objects and functions, etc. :/ But thanks for showing this, really usefull! Big Smile

    • User profile image
      David Charron

      It would have been nice to be able to auto correct the code just by clicking the warnings.

    • User profile image

      Not bad, I've been thinking about integrating this stuff with our build server some day.

      I just wish FxCop would have come farther by now. It's been around for a while and still has the same idiosyncrasies it's always had. It's not very easy to find a download link either, just try to Google it (or Bing if that's your thing.)

    • User profile image

      @martinmine: Check out the previous episode on building a CodeRush plug-in that fixes the naming. I posted on my blog about how to download and use the plug-in. Works great.

    • User profile image

      i like your style - since I saw your appdev videos [they we're purchased legally, so don't worry], good work Wink

    • User profile image

      Thanks robert , i liked your style since the first episode , i keep checking channel 9 waiting for more of your episodes.

    Comments closed

    Comments have been closed since this content was published more than 30 days ago, but if you'd like to send us feedback you can Contact Us.