mrkeyoor.comAsk

dotnet/roslyn

roslyn review

Use Roslyn when your tool needs the C# or Visual Basic compiler model, custom diagnostics or analysis across a solution.

Not run yet

Dev Toolsevaluationupdated 26 Oct 2026
+8stars / 7d

Roslyn, the .NET Compiler Platform, is the open-source implementation of the C# and Visual Basic compilers, with APIs for building code analysis tools. Its compiler APIs expose syntax, symbols, semantic analysis and assembly emission. Separate diagnostic and workspace APIs support analyzers and analysis across solutions.

Verdict

Use Roslyn when your tool needs the C# or Visual Basic compiler model, custom diagnostics or analysis across a solution. Choose the API layer that matches the job before taking on source contribution. Our recorded 2026-10-06 inspection of commit 1441e94 ran no install, build, tests or workloads, so it cannot establish setup ease, compatibility or performance. Prospective contributors should start with the contribution guide and a focused issue.

We ran it

Screenshot of roslyn (docs.microsoft.com/dotnet/csharp/roslyn-sdk)
docs.microsoft.com/dotnet/csharp/roslyn-sdk

Answers from our run

Did you run roslyn yourself?

No. Its code is C#, and it carries no manifest our lab installs from, and no Dockerfile, so there was nothing standard to install, build or test. This review is written from the repository's own documentation.

Who should not use roslyn?

Developers seeking a general parser for languages beyond C# and Visual Basic.

What are the alternatives to roslyn?

Tree-sitter, OmniSharp Roslyn. Use Roslyn when your tool needs the C# or Visual Basic compiler model, custom diagnostics or analysis across a solution.

Setup2/5Evidence rubric: documented routes with major verification gaps. The contribution guide links Windows and Unix setup, but our 2026-10-06 inspection of commit 1441e94 executed no setup commands.
Docs3/5Evidence rubric: substantive primary documentation. The supplied compiler overview explains API layers, and the contribution guide specifies issue, code, test and review requirements. Documentation completeness was not tested.
Community2/5Evidence rubric: documented routes with major verification gaps. The README identifies discussion channels and contribution review; the guide identifies contributor issue labels. Response times, adoption and daily activity were not measured.
Maturity3/5Evidence rubric: substantive primary documentation. Microsoft's overview says Visual Studio uses these APIs and explains their compiler pipeline roles. Our recorded run provides no reliability or compatibility results.

Discussed on

  1. hnC# 7 Work List of Features246 points
  2. hnFirst C# 7 Design Meeting Notes154 points
  3. hnC# 7 Proposal: Nullable reference types and nullability checking84 points
  4. hnMicrosoft DevBlog: How to Write a Roslyn Analyzer12 points
  5. hnRecord Syntax for C#5 points

Who it’s for

C# and Visual Basic tool authors who need syntax and semantic information.
Teams building custom diagnostics or refactoring tools.
Compiler contributors prepared to follow Roslyn's contribution, API review and testing processes.

Who it’s NOT for

Developers seeking a general parser for languages beyond C# and Visual Basic.
Readers expecting this review to verify installation, source builds, tests or runtime performance: our recorded run executed none of those steps.
Contributors expecting to submit new language syntax directly: the README directs language proposals to the C# and Visual Basic language repositories.

Setup reality

In our recorded run on 2026-10-06 at 03:33:07.121 UTC, the lab inspected commit 1441e94 (full SHA 1441e946e78a3e602fc6991189ec2e32437d9e29). The runner reported no supported C# ecosystem and detected no Dockerfile. Its raw steps object is empty: no installation command, dependency download, build, test, installed-binary check or workload execution was recorded. Install, build, test, dependency and audit results are null. This is a limitation of our runner, not evidence that Roslyn cannot build.

The repository snapshot metrics were 35,348 files, 6,261,170 lines of code and 457.1 MB. These describe the recorded checkout, not installed size or resource requirements. The run took 36 seconds overall; that is inspection time, not installation or build time.

For source contribution, the contribution guide points to Windows and Unix setup workflows and requires builds, test coverage and review. The README lists Windows and Unix builds, desktop and CoreCLR unit tests, integration tests and additional checks. Those are upstream CI categories, not tests we ran or independently verified.

Choose Roslyn by the information your tool needs

Roslyn exposes more than the shape of a C# or Visual Basic file. Its APIs also expose symbols and semantic analysis, which matter when a tool must understand what names refer to. That makes the first decision an API choice: does your tool need syntax, compiler meaning, custom diagnostics or a model of an entire solution?

Microsoft's compiler API overview separates those responsibilities. The parse phase exposes a syntax tree. Declaration produces symbols, binding exposes semantic analysis, and emission produces IL. The diagnostic APIs let custom analyzers participate in compilation. The Workspaces layer organizes projects and their dependencies for analysis and refactoring across solutions.

The compiler and workspace layers have no dependencies on Visual Studio components, according to that overview. Using these APIs and contributing to Roslyn's source tree are separate decisions. Start by identifying the information your tool needs; investigate the source contribution workflow when you need to change or debug the implementation.

What our recorded run establishes

Our recorded run inspected commit 1441e94 (1441e946e78a3e602fc6991189ec2e32437d9e29) on 2026-10-06 at 03:33:07.121 UTC. The lab classified it as not runnable because its runner had no supported C# ecosystem and detected no Dockerfile.

The raw record contains an empty steps object. We recorded no installation command, dependency download, build, tests, installed-binary check or measured workload. There is no audit result or package coverage measurement. No tests failed in this run because no tests executed. Source-build behavior remains unverified here.

The recorded checkout contained 35,348 files, 6,261,170 lines of code and 457.1 MB. The inspection took 36 seconds overall. These figures do not measure installed size, build duration, memory demand or compiler performance. The detector's testsDir=false signal also does not establish that Roslyn lacks tests: the README explicitly lists upstream test categories.

Source contribution has its own requirements

The contribution guide links setup workflows for Windows and Unix. It asks contributors to add test coverage, follow existing conventions and ensure the repository builds and tests pass. Substantial contributions should be discussed with the team before implementation.

The README lists Windows and Unix builds, desktop and CoreCLR unit tests, integration configurations, determinism, analyzers, source build, localization and macOS checks. That breadth helps explain the contribution requirements, but the table is not evidence that any particular run passed.

Public API proposals go through API review. Language feature proposals belong in the separate C# or Visual Basic language repositories. For a first contribution, the guide identifies help wanted and good first issue labels; inspect the issue and discuss its scope before committing to a large change.

Compare the task before choosing an alternative

Tree-sitter is relevant when you need an incremental concrete syntax tree as a file changes. Its README describes a parser generator and parsing library. That is a different task from consuming Roslyn's C# and Visual Basic semantic information; we did not benchmark either approach.

OmniSharp Roslyn is relevant when the immediate task is C# editor integration. Its README describes a development platform based on Roslyn workspaces, with Stdio and HTTP server variants. It is a consumer of Roslyn. The same README says the VS Code C# extension uses the Roslyn language server by default, so check the editor's current integration before choosing OmniSharp.

How to read these scores

These are editorial assessments of the supplied evidence, not measured product results. The scale is 1 for little supporting evidence, 2 for documented routes with major verification gaps, 3 for substantive primary documentation, 4 for documentation plus relevant operational evidence, and 5 for broad corroborated evidence. A low evidence score does not establish poor product quality.

Setup receives 2/5 because contribution routes are documented but our runner executed no setup steps. Documentation receives 3/5 because the supplied overview explains API layers and the contribution guide gives concrete requirements. Community receives 2/5 because contribution and discussion channels are documented, while responsiveness and adoption were not measured. Maturity receives 3/5 because Microsoft documents these APIs' use in Visual Studio, while our run supplies no compatibility or reliability results.

For tool authors, the useful next step is to map one concrete task to the compiler, diagnostic or workspace layer. For source contributors, read the contribution guide and choose a focused issue. This review supports that choice of direction; it does not certify a working local environment.

Alternatives

ProjectWhat it isPick it when
Tree-sitter gh↗A parser generator and incremental parsing library that builds and updates concrete syntax trees.Choose it when your task is maintaining a syntax tree as a source file changes. Its README describes parsing across programming languages; Roslyn specifically exposes the C# and Visual Basic compiler models.
OmniSharp RoslynA .NET development platform based on Roslyn workspaces that supplies project dependencies and C# language services to IDEs and plugins.Choose it when you need an existing server for C# editor integration. It builds on Roslyn rather than replacing its compiler APIs. Check your editor's integration: OmniSharp's README says the VS Code C# extension uses the Roslyn language server by default.

What people are saying

  1. [velocity-scout] dotnet/roslyn

Sources

  1. Roslyn repository and README
  2. Roslyn compiler API overview
  3. Roslyn contribution guide
  4. Known Roslyn build error tracking

More dev tools reviews