Roslyn (compiler)

.NET Compiler Platform (Roslyn)
Original author(s)Microsoft
Developer(s).NET Foundation and the open source community
Stable release
.NET 7.0.0 / November 8, 2022; 2 years ago (2022-11-08)[1]
Repositorygithub.com/dotnet/roslyn
Written inC#, Visual Basic
Operating systemWindows, Linux and macOS
PlatformIA-32, x86-64
TypeCompiler
LicenseMIT License
Websitelearn.microsoft.com/en-us/dotnet/csharp/roslyn-sdk/

.NET Compiler Platform, also known by its codename Roslyn,[2] is a set of open-source compilers and code analysis APIs for C# and Visual Basic (VB.NET) languages from Microsoft.[3]

The project notably includes self-hosting versions of the C# and VB.NET compilers – compilers written in the languages themselves. The compilers are available via the traditional command-line programs but also as APIs available natively from within .NET code. Roslyn exposes modules for syntactic (lexical) analysis of code, semantic analysis, dynamic compilation to CIL, and code emission.[4]

  1. ^ "Release .NET 7.0.0". GitHub. December 14, 2021. Retrieved May 5, 2022.
  2. ^ "C# and Visual Basic - Use Roslyn to Write a Live Code Analyzer for Your API". msdn.microsoft.com. July 24, 2015. Retrieved January 7, 2019.
  3. ^ .NET Compiler Platform ("Roslyn") on GitHub
  4. ^ Neil McAllister, Microsoft's Roslyn: Reinventing the compiler as we know it, DEVELOPER_WORLD, 2011-10-20