CA0062

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. 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

The rule 'RuleId' referenced in rule set 'RuleSetName' could not be found.

This error indicates that the specified rule couldn't be found.

This error usually occurs because a rule set file was edited by hand. To avoid this error, you can use the Visual Studio rule set editor to configure code analysis rules.

To resolve this issue, make sure that all the check IDs that are specified in your .ruleset file are valid. if you are using a non-standard rule set file, make sure that the appropriate rule hint paths are specified in the file.

See also