The current C# compiler works as a “black box” to generate an assembly from source code. If you want to extend the language with analysis tools (like StyleCop, IntelliSense, or ReSharper), scripting environments, or domain-specific language features, you need to re-invent a lot of the same parsing logic. The next version of C# and VB.Net will include entirely new compilers (codename Roslyn) designed from the ground up to expose the internal logic as public APIs.
In this session, you’ll learn through code samples how to use the new C# compiler APIs to effortlessly create an interactive scripting console, add your own domain-specific language features, and analyze the semantic structure of your code. We’ll showcase projects which use the new compiler APIs to create powerful utilities and IDE features.