1

Following What Replaces Code Analysis in Visual Studio 2019?, I understand that Microsoft.CodeAnalysis.FxCopAnalyzers is deprecated. Previously, the Code Analysis generated an automated XML file with all the warnings and errors in the template of MyApplication.exe.CodeAnalysisLog.xml.

VS 2019: Right-click Project > Analyze and Code Cleanup > Run Code Analysis

It seems like those new .NET Analyzers do not work the same way. Is it possible to generate a report (log) with those errors using the new analyzer? It would be nice if an XML file could be generated, although there is no requirement for the file format.

It is my goal to create a CI build for which I will be able to track these warnings/errors and fail the build itself.

Any assistance would be greatly appreciated.

Erelephant
  • 111
  • 9
  • I also have need of this same thing. I have been unable to find a way and it seems to ignore the CodeAnalysisLogFile value. – AJ Henderson Mar 11 '22 at 17:59

0 Answers0