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
I am trying to use <WarningsAsErrors>nullable</WarningsAsErrors> in a project, but nullable warnings are still not showing as errors. This is a simple project file that exhibits the issue:
The warnings are properly treated as errors when running dotnet build, but don't work in the editor. These symptoms seem similar to dotnet/roslyn#38371
The text was updated successfully, but these errors were encountered:
Did this stop working in recent versions or do I need some extra config to make it work? It's not working for me currently.
EDIT: It seems there is some discrepancy with how msbuild vs omnisharp treats those. In msbuild it's enough to set <WarningsAsErrors>Nullable</WarningsAsErrors> and for ominsharp I still have to add individual CSxxxx to make it work which is less than ideal.
I am trying to use
<WarningsAsErrors>nullable</WarningsAsErrors>
in a project, but nullable warnings are still not showing as errors. This is a simple project file that exhibits the issue:The warnings are properly treated as errors when running
dotnet build
, but don't work in the editor. These symptoms seem similar to dotnet/roslyn#38371The text was updated successfully, but these errors were encountered: