Roslynator is a set of code analysis tools for C#, powered by Roslyn.
Analyzers are not included in Roslynator IDE extensions. Use Roslynator NuGet packages (e.g. Roslynator.Analyzers) for diagnostics.
- IDE extensions for:
- Visual Studio 2026 (refactorings and compiler diagnostic fixes; analyzers via NuGet)
- Visual Studio 2022 (last 4.x release; pin or use NuGet packages)
- VS Code (refactorings and compiler diagnostic fixes; analyzers via NuGet)
- Requires legacy OmniSharp (
dotnet.server.useOmnisharp:true). With C# Dev Kit, use NuGet packages instead.
- Requires legacy OmniSharp (
- Open VSX
- NuGet packages that contain a collection of analyzers
- Testing framework that allows unit testing of analyzers, refactorings, and code fixes
- .NET client libraries that extend the Roslyn API
- Command line tool
Contributions are welcome! See the developer documentation, contributing with agent skills, and open issues.
Agent skills in .claude/skills/ provide step-by-step workflows for Cursor and Claude Code (adding analyzers, refactorings, compiler fixes, and bug fixes). You can also read SKILL.md files directly as contributor guides. See CONTRIBUTING.md.
TIP: Bugfixes or small improvements can be implemented right away. Larger tasks, such as adding a new analyzer or refactoring, should be discussed first.
Special thanks to:
- .NET on AWS Open Source Software Fund for donating $6000.00 USD ($500.00 for 12 months starting November 2024).
- Microsoft for donating $1000.00 USD.
- @IanKemp for donating $13.00 USD / month starting July 2021.
- @Genbox for donating $5.00 USD / month starting October 2024.
- Timo Nürnberg for donating $5.00 USD / month starting March 2025.
This project is supported by the .NET Foundation.
This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information see the .NET Foundation Code of Conduct.
To install the CLI:
dotnet tool install -g roslynator.dotnet.cliSee the CLI documentation for more information.
The CLI is also integrated in MegaLinter, an open-source linter aggregator for CI (see its Roslynator page).
- Use the testing framework to unit-test analyzers, refactorings, and code fixes.
- See the testing documentation for more information.
- The client libraries extend Roslyn and are intended for building custom analyzers and refactorings.
- These packages do not include analyzers or refactorings.
- See the API reference.
