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
The workspace reports the NU1903 warning about a vulnerability as a warning, i.e. the output should be:
Warning: Msbuild failed when processing the file 'C:\src\tmp\roslynworkspaceapp\project\project.csproj' with message: Package 'Newtonsoft.Json' 12.0.3 has a known high severity vulnerability, https://github.com/advisories/GHSA-5crp-9r3c-p9vr
Actual Behavior:
The warning is reported as a failure:
Failure: Msbuild failed when processing the file 'C:\src\tmp\roslynworkspaceapp\project\project.csproj' with message: Package 'Newtonsoft.Json' 12.0.3 has a known high severity vulnerability, https://github.com/advisories/GHSA-5crp-9r3c-p9vr
The problem is in Microsoft.CodeAnalysis.MSBuild.DiagnosticReporter, whose Report(DiagnosticLog log) method ignores DiagnosticLogItem.Kind.
The text was updated successfully, but these errors were encountered:
Version Used: Roslyn 4.11.0
Steps to Reproduce:
Run this code:
Where project.csproj is:
Expected Behavior:
The workspace reports the
NU1903
warning about a vulnerability as a warning, i.e. the output should be:Actual Behavior:
The warning is reported as a failure:
The problem is in
Microsoft.CodeAnalysis.MSBuild.DiagnosticReporter
, whoseReport(DiagnosticLog log)
method ignoresDiagnosticLogItem.Kind
.The text was updated successfully, but these errors were encountered: