Microsoft “Roslyn” CTP
Traditionally, compilers are black boxes – source code goes in one end and object files or assemblies come out the other end. The Roslyn project changes that model by opening up the Visual Basic and C# compilers as APIs. These APIs allow tools and end-users to share in the wealth of information the compilers have about code. The Roslyn CTP previews the next generation of language object models for code generation, analysis, and refactoring, and the upcoming support for scripting and interactive use of VB and C#.
.png) | Microsoft “Roslyn” October 2011 CTP
The Roslyn CTP installs on Visual Studio 2010 SP1. It includes previews of all of the Roslyn APIs for both Visual Basic and C#, samples of using the APIs, and a C# Interactive window. Note: This is a technology preview and there are known issues. While the shape of the public API is complete, only a subset of the VB and C# languages have been implemented at this time. |
Featured Resources
| Whitepaper: Roslyn Project Overview Get an overview of how the Roslyn project exposes the Visual Basic and C# compilers’ code analysis. |
| Roslyn Project Overview Download Download the Roslyn Project Overview. |
.png) | Walkthrough: Getting Started with Syntax Analysis – VB | C# Follow step-by-step introductions to navigating and analyzing syntax trees in both Visual Basic and C#. |
.png) | Walkthrough: Getting Started with Semantic Analysis – VB | C# Follow step-by-step introductions to semantic analysis in both Visual Basic and C#. |
.png) | Walkthrough: Getting Started with Syntax Transformations – VB | C# Follow step-by-step introductions to syntax tree transformations using both syntax and semantic analysis in both Visual Basic and C#. |
| Walkthrough: How To Write a Quick Fix – VB | C# Follow step-by-step instructions for creating a custom code issue that is surfaced through the IDE and an automatic fix to correct it in both Visual Basic and C#. |
.png) | Walkthrough: Executing Code in the Interactive Window - C# Follow step-by-step instructions for getting started using the Interactive window to explore code snippets and their behaviors. Only the C# Interactive window is available at this time. |
.png) | Walkthrough: Seeding the Interactive Window from a WPF Project - C# Follow step-by-step instructions for using a WPF project to load context into the Interactive window. |
.png) | Walkthrough: Introduction to Scripting - C# Follow step-by-step introductions to the basics of the Scripting APIs and using the host execution engine in your .NET applications. |
| Walkthrough: Scripting a Paint-like Application - C# Follow step-by-step instructions for enabling scripting in a ficticious Paint-like application and executing scripts in a custom execution context. |
Roslyn Videos
| In this video we meet the Roslyn Project design team (and the authors of the The Roslyn Project technical paper), Anders Hejlsberg, Karen Ng, Matt Warren, and Peter Golde. We discuss why Roslyn matters, how it works (briefly - we'll go deeper in the future), what it affords, and what it doesn't enable.
|
| In this talk, Technical Fellow Anders Hejlsberg looks into topics such as asynchronous programming, object models for code generation, analysis, and refactoring, and support for scriping and Interactive use of C# and Visual Basic. |
| .png) | Mike Barnet chairs this session at Faculty Summit 2011, which includes the following presentations:
Project Roslyn: Exposing the VB and C# Compilers’ Code Analysis Karen Ng, Microsoft
Beyond Behavior Preservation Ralph Johnson, University of Illinois, Urbana-Champaign
How Are Developers Using Refactoring Tools? Emerson Murphy-Hill, North Carolina State University |
|