How to Fix All Diagnostics in a Solution
1) Install Roslynator.DotNet.Cli
dotnet tool install -g roslynator.dotnet.cli
2) Run fix command
roslynator fix PATH_TO_SOLUTION
1) Install Roslynator.DotNet.Cli
dotnet tool install -g roslynator.dotnet.cli
2) Run fix command
roslynator fix PATH_TO_SOLUTION