Skip to main content

Roslynator Command Line Tool

Commands

Installation

Run dotnet tool install -g roslynator.dotnet.cli

Requirements

  • Version 0.8.0 or higher requires .NET Core SDK 6, 7 or 8.
  • Version 0.5.0 or higher requires .NET Core SDK 6 or 7.
  • Version 0.4.0 or higher requires .NET Core SDK 6.
  • Version 0.2.0 or higher requires .NET Core SDK 5.

Exit Code

ValueComment
0Success*
1Not a success**
2Error occurred or execution canceled

* No diagnostic was found (analyze command ) or all diagnostics were fixed (fix command) etc.

** A diagnostic was found (analyze command) or not all diagnostics were fixed (fix command) etc.

Legacy .NET Framework Package

  • 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.