Roslyn
The open-source compiler for C# and Visual Basic, which turns source code into intermediate language inside an assembly.
In more detail
Roslyn does not produce machine code; that is the JIT compiler's job when the program runs. It also exposes the syntax tree and semantic model of your code, which is what lets analyzers, source generators and editors understand it. It runs every time you build.
Related terms
- IL — The processor-independent instruction set that .NET compilers produce, stored in assemblies and turned into machine code by the JIT when the program runs.
- JIT compiler — A compiler inside a runtime that turns intermediate code into native machine code while the program runs.
- Roslyn analyzer — A plug-in to the C# compiler that inspects code while you edit and build, and reports diagnostics about likely bugs, unsafe patterns or style.
- source generator — A compiler plug-in that writes extra C# code during the build, based on the code you wrote.
- compiler — A program that translates source code a person wrote into a form a machine or runtime can execute, checking it for errors on the way.
Taught in
- What is .NET? Runtime vs SDK, and LTS vs STS — Modern .NET Core, C# & Enterprise Microservices
- Directory.Build.props, global.json and Central Packages — Modern .NET Core, C# & Enterprise Microservices
- Code Quality: .editorconfig and Roslyn Analyzers — Modern .NET Core, C# & Enterprise Microservices