Session

Hands-on: Roslyn

We as developers use Compilers and IDEs the most during our day-to-day job. They help us navigate, write and refactor code efficiently and focus on providing value for the business. However, the general toolchain lacks domain-specific knowledge. Roslyn, the .NET Compiler Platform, allows extending its capabilities by providing additional context, bringing even more productivity to the team!

Diagnostic Analyzers and Code Fix Providers are two components that shorten the feedback loop for developers to catch and fix potential issues already at design-time. Source Generators delegate infrastructural plumbing to the compiler by auto-generating boilerplate code, saving developers’ precious time. Additionally, source-level interception can replace reflection-based dynamic code to enable Native AOT (ahead-of-time compilation) support.

You will leave this workshop with hands-on experience and a solid understanding of the Roslyn APIs which helps you to bring context-aware developer experiences to your teams, whether you are building applications or libraries.

Agenda

- Basics of metaprogramming with Roslyn
- Understanding Syntax Trees and Semantic Models
- Incremental Source Generators
- C# Interceptors
- Diagnostic Analyzers
- Code Fix Providers
- Testing and Debugging
- Publishing as NuGet package
- Tooling
- Real-world use cases from the ecosystem
- Where to go next

Target Audience

You, who are familiar with C# and are enthusiastic to bring even more integration with Roslyn into your daily development experience.

Prerequisites

- Laptop
- Latest .NET SDK
- Your preferred IDE
- Rider (recommended)
- Visual Studio
- Visual Studio Code
- Access to NuGet.org

Stefan Pölz

Clean C# Coder – Test-driven .NET Developer

Vienna, Austria

Actions

Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.

Jump to top