qmetrics.net

Roslyn

Open-source C# and Visual Basic compiler platform APIs

Roslyn screenshot

Roslyn implements the .NET C# and Visual Basic compilers and exposes APIs for analyzing, refactoring, and generating .NET code in tools and applications.

Overview

Roslyn is the open-source .NET Compiler Platform: the production compilers for C# and Visual Basic plus a rich API surface for programs that need the same syntax and semantic models the compiler builds. Compilers are no longer opaque binaries; they expose the detailed tree of parsed code for IDE features and custom tooling.

The SDK supports analyzers that flag patterns and mistakes via static analysis, code fixes that suggest corrections for diagnostics, and refactorings that reshape code safely. Source generators can emit additional code at compile time after reading the user compilation and supplemental files, enabling metaprogramming workflows.

Typical uses include enforcing team coding standards inside the editor, shipping guidance packaged with NuGet libraries, and publishing general-purpose analyzers to extension marketplaces. Because tools reuse the compiler’s own models, they tend to use less memory in Visual Studio than reimplementing a full language parser.

Documentation from Microsoft Learn describes syntax and semantic APIs, workspaces for whole-solution analysis, and security guidance for running third-party analyzers and generators only from trusted sources.

Key features

  • C# and Visual Basic compilers
  • Syntax and semantic analysis APIs
  • Analyzers with code fix providers
  • Code refactorings
  • Compile-time source generators
  • NuGet-packaged analyzer distribution
  • Workspace model for solutions
  • IDE integration via compiler platform

Use cases

  • Custom Roslyn analyzers for coding standards
  • Library-specific misuse detection
  • Automated code fixes in Visual Studio
  • Compile-time code generation
  • Building .NET language tooling

Tags

Similar software

TypeScript

Typed JavaScript language with compile-time checks

TypeScript adds optional static types to JavaScript and compiles to standard JavaScript. It targets application-scale code on browsers, Node.js, and other JavaScript runtimes.

★ 111.9k⟳ yesterdayApache-2.0

Carbon Lang

Experimental successor language interoperating with C++

Carbon Language is an experimental programming language and toolchain aimed at C++ interoperability, migration, and modernization. It is not ready for production use and remains under active development.

★ 34k⟳ yesterdayApache-2.0 · open core

GopherJS

Go to JavaScript compiler for browser front-end code

GopherJS translates Go programs into JavaScript so front-end logic can run in browsers. Install the gopherjs CLI to build, test, and serve packages like the standard go tool.

★ 13.2k⟳ 16 days agoBSD-2-Clause

Halide

Embedded language for fast image and array pipelines

Halide helps write high-performance image and array processing code, embedded in C++ or Python. Pipelines compile to CPUs and multiple GPU compute APIs.

★ 6.6k⟳ todayMIT · open core

The Agda Wiki

Dependently typed functional language and interactive proof assistant

Agda combines a dependently typed functional programming language with an interactive environment for writing and checking constructive proofs.

★ 3k⟳ yesterdayMIT

Dingo

Go meta-language transpiling to idiomatic Go

Dingo is a language that compiles to clean Go code, adding Result types, error propagation, pattern matching, and related syntax while staying compatible with the Go toolchain.

★ 1.9k⟳ 2 months agoApache-2.0