- .NET Core global tool
- cross-platform
- can be run directly from command line
- It is recommended to use this tool.
- Version 0.2.0 or higher requires .NET Core SDK 5.0
Run following command to install it:
dotnet tool install -g roslynator.dotnet.cli
- Stand-alone application that requires .NET Framework (Windows only).
- It can be used for .NET Framework projects (old style
csproj
). - Download package and run
Roslynator.exe
.
Value | Comment |
---|---|
0 | Success* |
1 | Not a success** |
2 | Error occurred or execution canceled |
* A diagnostic was found (analyze
command ) or a diagnostic was fixed (fix
command) etc.
** No diagnostic was found (analyze
command) or no diagnostic was fixed (fix
command) etc.
If you are using version 0.1.5 or lower it may be necessary to specify MSBuild instance - a directory where MSBuild binaries are located.
You should specify MSBuild instance that is part of Visual Studio installation. It should be similar to C:/Program Files/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin
You should specify MSBuild instance that is part of .NET Core SDK installation. It should be similar to C:/Program Files/dotnet/sdk/3.1.200