Roslynator
github.com
- Free plan
- Windows
- macOS
- Linux
- Browser extension
What Roslynator is
Roslynator is a free, open-source set of C# code analysis tools built around Roslyn. Its IDE extensions provide refactorings and fixes for compiler diagnostics, while analyzers are distributed separately through NuGet packages. The project lists extensions for Visual Studio 2026 and 2022, VS Code, and Open VSX. The VS Code extension requires legacy OmniSharp with `dotnet.server.useOmnisharp` set to true, and it does not work with C# Dev Kit. A command-line tool can be installed with `dotnet tool install -g roslynator.dotnet.cli` and is integrated into MegaLinter for CI. EditorConfig settings can configure analyzers, refactorings, and compiler diagnostic fixes. A testing framework supports unit tests for analyzers, refactorings, and code fixes. Its .NET client libraries extend the Roslyn API but do not include analyzers or refactorings. The repository states that its files are licensed under Apache License 2.0. The security policy covers version 5.x, CLI 0.x, and the Visual Studio 2026 and VS Code extensions; it excludes versions below 5.0 and Visual Studio 2022 extensions.
Who it suits
Roslynator suits C# developers who want analysis, refactoring, or compiler-diagnostic fixes in Roslyn-based environments. Its CLI and MegaLinter integration may also suit teams incorporating checks into CI.
Good to know, and what to watch
- IDE extensions provide refactorings and diagnostic fixes.
- Analyzers are available separately through NuGet.
- CLI is integrated into MegaLinter for CI.
- EditorConfig can configure analysis and refactoring.
- VS Code requires legacy OmniSharp.
- The VS Code extension does not work with C# Dev Kit.
- Visual Studio 2022 extensions are outside security support.
Plans
Every plan and priceFree of charge
Open source
Getting started
- Open the Roslynator GitHub website
- Install the extension for Visual Studio, VS Code, or Open VSX
- For VS Code, enable legacy OmniSharp with `dotnet.server.useOmnisharp` set to true
- Add analyzer packages through NuGet when needed
- Install the CLI with `dotnet tool install -g roslynator.dotnet.cli`
- Configure behavior with EditorConfig settings
Limits to check
The VS Code extension requires legacy OmniSharp and is incompatible with C# Dev Kit. Analyzers are not included in the IDE extensions, and security support excludes versions below 5.0 and Visual Studio 2022 extensions.
The verdict
Roslynator combines IDE extensions, separately distributed analyzers, and a CLI for C# development. Confirm the editor requirements and the security policy's supported versions before choosing an extension.
Questions people ask
How much does Roslynator cost?
Roslynator is free of charge at no cost. It is open source, and donations are welcome.
Which editors have extensions?
The project lists extensions for Visual Studio 2026, Visual Studio 2022, VS Code, and Open VSX.
Does Roslynator support C# Dev Kit?
No. The VS Code extension requires legacy OmniSharp with `dotnet.server.useOmnisharp` set to true and does not work with C# Dev Kit.
Are analyzers included in the IDE extensions?
No. Analyzers are supplied through NuGet packages separately from the IDE extensions.
Can Roslynator run in CI?
Yes. The command-line tool is integrated into MegaLinter, an open-source linter aggregator for CI.
What license does it use?
The repository states that its files are licensed under Apache License 2.0.
What the maker publishes
- Analyzers
- Analyzers are not included in the IDE extensions and are provided through NuGet packages. source
- Audience
- The tools are for C# code analysis, refactoring, and compiler diagnostic fixes in Roslyn-based development environments. source
- CI integration
- The Roslynator CLI is integrated in MegaLinter, an open-source linter aggregator for CI. source
- CLI
- The command-line tool installs with dotnet tool install -g roslynator.dotnet.cli. source
- Client libraries
- Its .NET client libraries extend the Roslyn API and do not include analyzers or refactorings. source
- Configuration
- EditorConfig settings can configure analyzers, refactorings, and compiler diagnostic fixes. source
- Editor support
- The project lists extensions for Visual Studio 2026, Visual Studio 2022, VS Code, and Open VSX. source
- IDE features
- Its IDE extensions provide refactorings and fixes for compiler diagnostics. source
- License
- The repository states that its files are licensed under Apache License 2.0. source
- Purpose
- Roslynator is a set of code analysis tools for C#, powered by Roslyn. source
- Security support
- The security policy supports version 5.x, CLI 0.x, and the Visual Studio 2026 and VS Code extensions; versions below 5.0 and Visual Studio 2022 extensions are out of support. source
- Testing
- The project provides a testing framework for unit testing analyzers, refactorings, and code fixes. source
- VS Code requirement
- The VS Code extension requires legacy OmniSharp with dotnet.server.useOmnisharp set to true; it does not work with C# Dev Kit. source
- Vulnerability reporting
- The project asks users to report suspected vulnerabilities through GitHub issues and says it will release a patch as soon as possible once confirmed. source
Checked against the maker's pages on 3 Oct 2026.