You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run roslyn analyze path\to\solution\ConsoleApp.sln --output out.xml ( The --ignore-compiler-diagnostics parameter is not provided.)
Actual Behavior:
The compiler diagnostics are missing from the list of project diagnostics, but they are present in the summary. Console and text file loggers list the mentioned diagnostics correctly.
<?xml version="1.0" encoding="utf-8"?>
<Roslynator>
<CodeAnalysis>
<Summary>
<DiagnosticId="CA1822"Title="Mark members as static"Count="1" />
<DiagnosticId="CS0168"Title="Variable is declared but never used"Count="2" />
</Summary>
<Projects>
<ProjectName="ConsoleApp"FilePath="C:\ConsoleApp\ConsoleApp\ConsoleApp.csproj">
<Diagnostics>
<DiagnosticId="CA1822">
<Severity>Info</Severity>
<Message>Mark members as static</Message>
<FilePath>C:\ConsoleApp\ConsoleApp\Program.cs</FilePath>
<LocationLine="11"Character="20" />
</Diagnostic>
</Diagnostics>
</Project>
</Projects>
</CodeAnalysis>
</Roslynator>
Expected Behavior:
<?xml version="1.0" encoding="utf-8"?>
<Roslynator>
<CodeAnalysis>
<Summary>
<DiagnosticId="CA1822"Title="Mark members as static"Count="1" />
<DiagnosticId="CS0168"Title="Variable is declared but never used"Count="2" />
</Summary>
<Projects>
<ProjectName="ConsoleApp"FilePath="C:\ConsoleApp\ConsoleApp\ConsoleApp.csproj">
<Diagnostics>
<DiagnosticId="CA1822">
<Severity>Info</Severity>
<Message>Mark members as static</Message>
<FilePath>C:\ConsoleApp\ConsoleApp\Program.cs</FilePath>
<LocationLine="11"Character="20" />
</Diagnostic>
<DiagnosticId="CS0168">
<Severity>Warning</Severity>
<Message>Variable is declared but never used</Message>
<FilePath>C:\ConsoleApp\ConsoleApp\Program.cs</FilePath>
<LocationLine="7"Character="17" />
</Diagnostic>
<DiagnosticId="CS0168">
<Severity>Warning</Severity>
<Message>Variable is declared but never used</Message>
<FilePath>C:\ConsoleApp\ConsoleApp\Program.cs</FilePath>
<LocationLine="7"Character="20" />
</Diagnostic>
</Diagnostics>
</Project>
</Projects>
</CodeAnalysis>
</Roslynator>
The text was updated successfully, but these errors were encountered:
PeterKaszab
changed the title
CLI: Include compiler diagnostics in the xml output file of the roslynator analyze command
[CLI] Include compiler diagnostics in the xml output file of the roslynator analyze command
Oct 13, 2022
Product and Version Used:
Roslynator.DotNet.Cli 0.3.3.0
Steps to Reproduce:
Program.cs
file:roslyn analyze path\to\solution\ConsoleApp.sln --output out.xml
( The--ignore-compiler-diagnostics
parameter is not provided.)Actual Behavior:
The compiler diagnostics are missing from the list of project diagnostics, but they are present in the summary. Console and text file loggers list the mentioned diagnostics correctly.
Expected Behavior:
The text was updated successfully, but these errors were encountered: