Sign in to confirm you’re not a bot
This helps protect our community. Learn more

Introduction and an overview of Roslyn and analyzers

0:00

Demo of analyzers and suggested code fixes

2:15

Using editor.config to control the severity of code errors

5:00

Changing the default severity of a code violation

8:25

Adding an editor.config to your project

9:30

How analyzer recommendations vary based on language versions

11:20

Write your own analyzer

14:05

Syntax nodes and syntax node actions

17:20

Code fix providers and code actions

19:40

Provide analyzers as a NuGet package

23:30

Testing your analyzer

27:30

Wrap-up

33:20
Roslyn Analyzers
185Likes
13,172Views
2022Jun 2
Mika Dumont and Andrew Hall show how you can use the Roslyn analyzers to inspect and improve your code, and also how to create an analyzer of your own. Chapters 00:00 - Introduction and an overview of Roslyn and analyzers 02:15 - Demo of analyzers and suggested code fixes 05:00 - Using editor.config to control the severity of code errors 08:25 - Changing the default severity of a code violation 09:30 - Adding an editor.config to your project 11:20 - How analyzer recommendations vary based on language versions 14:05 - Write your own analyzer 17:20 - Syntax nodes and syntax node actions 19:40 - Code fix providers and code actions 23:30 - Provide analyzers as a NuGet package 27:30 - Testing your analyzer 33:20 - Wrap-up Resources Roslyn’s open-source repo https://github.com/dotnet/roslyn Roslyn Analyzer docs https://docs.microsoft.com/en-us/visu... How to write a Roslyn Analyzer (docs) https://docs.microsoft.com/en-us/dotn... How to write a Roslyn Analyzer (blog post) https://devblogs.microsoft.com/dotnet... Andrew's analyzer on GitHub https://github.com/ryzngard/VSToolBox...

Follow along using the transcript.

Microsoft Visual Studio

335K subscribers