If playback doesn't begin shortly, try restarting your device.
•
You're signed out
Videos you watch may be added to the TV's watch history and influence TV recommendations. To avoid this, cancel and sign in to YouTube on your computer.
CancelConfirm
Share
An error occurred while retrieving sharing information. Please try again later.
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...…...more
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...…...more