MSBuild error MSB8061

MSB8061: No tool enabled for Code Analysis.

This error occurs when code analysis has no specified analysis tool enabled.

To resolve this issue, review and set code analysis settings for your project. For more information, see Quickstart: Code analysis for C/C++.