.NET Compiler Platform ("Roslyn") Extensibility

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

The core mission of the .NET Compiler Platform (“Roslyn”) is opening up the C# and Visual Basic compilers and allowing tools and developers to share in the rich information compilers have about programs. Code analysis tools improve code quality, and code generators aid in application construction. As tools get smarter, they need access to more and more of the deep code knowledge that only compilers possess. Instead of being opaque translators (source code in and object code out), the Roslyn compilers offer APIs that you can use for code-related tasks in your tools and applications.

The best part is that the Roslyn compilers, their APIs, samples and walkthroughs, and the real tools built on top of these APIs are all fully open source at github.com/dotnet/roslyn. Please go to the OSS site to learn more and get started with Roslyn. You will find links to get the latest C# and VB features that you can use as an end user, as well as links to get started as a tool builder leveraging the Roslyn APIs.

See Also

Getting Started with Roslyn Analyzers