The .NET Compiler Platform (“Roslyn”) provides open-source C# and Visual Basic compilers with rich code analysis APIs.
The .NET Compiler Platform (“Roslyn”) provides open-source C# and Visual Basic compilers with rich code analysis APIs. It enables building code analysis tools with the same APIs that are used by Visual Studio.
- Try out Visual Studio 2015 Preview, which has the latest features built-in.Want to keep your box clean? You can use prebuilt Azure VM images with VS 2015 Preview already installed.
- You can also try April’s End User Preview, which installs on top of Visual Studio 2013. (Note: The VS 2013 preview is quite out of date, and is no longer being updated.)
Get started building diagnostics, code fixes, refactorings, and other code-aware tools!
- Set up a box with Visual Studio 2015 Preview. Either install Visual Studio 2015 Preview, or grab aprebuilt Azure VM image.
- Install the Visual Studio 2015 Preview SDK. You’ll need to do this even if you’re using the Azure VM image.
- Install the SDK Templates VSIX package to get the Visual Studio project templates.
- Install the Syntax Visualizer VSIX package to get a Syntax Visualizer tool window to help explore the syntax trees you’ll be analyzing.
Or, you can grab the latest NuGet Roslyn compiler package. From the NuGet package manager console:
Install-Package Microsoft.CodeAnalysis -Pre
- Clone the sources:
git clone https://github.com/dotnet/roslyn.git
- Enhanced source view, powered by Roslyn
- Building, testing and debugging the sources
- Roslyn Overview
- Samples and Walkthroughs
- Syntax Visualizer Tool
- Language Feature Status
- Language Design Notes
Reference Source Code available at: https://github.com/dotnet/roslyn