What is it all about?
The .NET Compiler Platform ("Roslyn") provides open-source C# and Visual Basic compilers with rich code analysis APIs. You can build code analysis tools with the same APIs that Microsoft is using to implement Visual Studio!
Key Features
* APISampleUnitTests - A collection of unit tests that show how various APIs can be used. Many of these methods are referenced in the FAQ. * AsyncPackage - A set of diagnostics and code fixes that help you use the await/async keywords correctly. * ConsoleClassifier - A simple console application that prints colored source code to the console. * ConvertToAutoProperty - A code refactoring to change a simple property with a trivial getter and setter into an auto property. * FormatSolution - A console application that formats all C# and VB source files in a solution. * ImplementNotifyPropertyChanged - A code refactoring to make selected properties of a class support PropertyChanged events. Select the properties to be updated in the editor, press Alt+. to show the refactoring lightbulb menu, and choose "Apply INotifyPropertyChanged pattern." * MakeConst - A diagnostic (user defined compiler warning), that indicates when local variables can be made const, and a quick fix to make the variable into a const. The Diagnostic walkthrough below explores this sample in detail.
Compare Products
Select up to three two products to compare by clicking on the compare icon () of each product.
{{compareToolModel.Error}}