Course
Skills Expanded
Introduction to the .NET Compiler Platform
This course provides an overview of the design and use cases of the .NET Compiler Platform, codenamed "Roslyn".
What you'll learn
In this course, we'll explore the .NET Compiler Platform, codenamed "Roslyn". The course will focus on the rationale for building the .NET Compiler Platform, its overall architecture, and the various APIs exposed to analyze and manipulate C# and Visual Basic programs. During this course, we'll build a couple of simple Visual Studio extensions that integrate with the language services to provide custom diagnostics and code fixes.
Table of contents
Why the .NET Compiler Platform Matters
31mins
Getting Started
31mins
Syntax Trees
45mins
Compilation APIs
43mins
- The Role of the Compilation APIs 4m
- Compiling Code 4m
- Compilation Types 5m
- Our First Compilation 2m
- Configuring the Compiler 5m
- Compilation Results 2m
- Illustrating the Compilation APIs 7m
- Introducing Semantic Questions 4m
- Answering Simple Semantic Questions 4m
- Classifying Type Conversions 5m
- Summary 2m
Semantic Models
44mins
Analyzers and Code Fixes
47mins
- Introducing Diagnostics 4m
- Retrieving Diagnostics from Compilations 3m
- Understanding Analyzers 3m
- Symbol Analyzers 6m
- Building a Simple Field Name Analyzer 5m
- Syntax Node Analyzers 4m
- Some Sample Syntax Node Analyzers 5m
- Code Fix Providers and Code Actions 5m
- Implementation Steps for Code Fix Providers 3m
- Building Our First Code Fix Provider 8m
- Summary 2m