How to: View Managed Code Defects

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

In code analysis, errors, warnings, and messages are reported in the Code Analysis window. The Code Analysis window appears automatically when you run code analysis on a project or solution.

In the Code Analysis window, you can:

  • Choose the warning title.

    Additional information about the warning appears in the Code Analysis window. The line in the source file that fired the warning is displayed and highlighted in the source code editor.

  • Choose the warning id. Warning ids are prefixed by CA and include a four-digit number. For example, CA1234.

    The MSDN Library help topic for the warning is displayed. The help topic contains detailed information about the cause of the warning and includes examples that demonstrate how the warning issue occurs and is resolved.