Export (0) Print
Expand All
5 out of 6 rated this helpful - Rate this topic

Analyzing Managed Code Quality by Using Code Analysis

This topic applies to:

Visual Studio Ultimate

Visual Studio Premium

Visual Studio Professional 

Visual Studio Express

Topic appliesTopic appliesTopic does not applyTopic does not apply

You can use Code Analysis in Visual Studio Premium and Visual Studio Ultimate to discover potential issues in your code, such as non-secure data access, usage violations, and design problems. Code analysis works on .NET Framework, native (C and C++), and database applications. Code analysis for managed code organizes rules in rule sets that target specific coding issues.  

Common Tasks

Supporting Content

Get hands-on practice: Learn the basics of code analysis by correcting defects in a simple .NET Framework application.

Configure code analysis for a project: Rules for managed code are organized into rule sets that target specific areas, such as security and design. You can use one of the Microsoft standard rule sets or create your own.

Run code analysis: You can specify code analysis to be run automatically every time that a project configuration is built, and you can run code analysis manually on a project.

Analyze code analysis results: Code analysis warnings and errors are listed in the Visual Studio Error List window. You can click a warning or an error to display the source code that contains the issue, and the warnings are linked to detailed information and possible corrections.

Integrate code analysis with your development life-cycle: Check-in policies in Team Foundation version control enable development teams to make sure that all code check-ins meet a common set of code analysis standards. Creating a work item for a code analysis rule violation is simple procedure that you can perform in the Error List window.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.