Hello @James J ,
Thank you for taking time to post this issue in Microsoft Q&A forum.
Please refer to Manish Vasani’s explanation in this thread C++/cli compiler causing FxCop errors, and try related suggestions:
“Binary FxCop analysis is deprecated in favor of source based Roslyn analyzers. See Migrate from legacy analysis (FxCop) to source analysis(.NET analyzers) for more context”
“As source based Roslyn analyzers are not supported on C++/CLI, code analysis for managed CA rules is no longer supported for C++/CLI. You should do one of the following:
- Turn off code analysis for C++/CLI projects by ensuring the MSBuild property
RunCodeAnalysis
is set tofalse
in your project file. - If you’d like to continue using the deprecated managed CA rules for C++/CLI projects, add inline source suppressions for such false positives.”
Sincerely,
Tianyu
- If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.