Troubleshooting Code Analysis Issues

This topic contains troubleshooting information for the following Visual Studio code analysis issues.

  • Changes in a Visual Studio 2010 Rule Set Are Not Reflected in Previous Visual Studio Versions

Changes in a Visual Studio 2010 Rule Set Are Not Reflected in Previous Visual Studio Versions

When you create a rule set in Visual Studio 2010 that contains a child rule set, a change to the child rule set might not be applied in code analysis runs on computers that use an earlier version of Visual Studio. To resolve this issue, you must force a rewrite of the parent rule set, that is the rule set that contains the child rule set.

  1. Open the parent rule set in Visual Studio 2010.

  2. Make a change, such as adding or removing a rule, and then save the rule set.

  3. Reopen the rule set, reverse the change, and then save the rule set again.

See Also

Concepts

Analyzing Application Quality by Using Code Analysis Tools

Analyzing Managed Code Quality by Using Code Analysis

Using Rule Sets to Group Code Analysis Rules