Visual Studio / .NET Framework

TH18 Improving Code Quality with Roslyn Code Analyzers

09/21/2017

2:45pm - 4:00pm

Level: Intermediate to Advanced

Jim Wooley

Solution Architect

Slalom Consulting

The new .Net compliers in Visual Studio 2015 include the ability to expose the language services to let you build your own analyzers and code fixes/refactorings. This session will introduce you to the capabilities of the compiler platform and demonstrate how you can extend it to more proactively catch common coding smells and patterns that would have otherwise caused runtime exceptions that can be caught during compilation instead. If you've relied on third party commercial coding tools like resharper in the past, you'll see how you can build your own tooling extensions or leverage some of the many open source solutions.

This will be a hands-on hack-type session, so bring your computers and ideas for tools you would like to build. You'll start with some introductory demonstrations, but include ample time for working through some hands-on examples.

You will learn:

  • How to use code analysis tools in Visual Studio 2017
  • How to customize the analyzers and code styles in Visual Studio 2017
  • How to build Roslyn based code fixes to detect and fix domain specific errors that the compiler can't catch