Learning a new API can be very difficult and documentation is cumbersome to read. Fortunately, there is a new way to guide the users of your library into the Pit of Success.
Code Analyzers are a feature of the .NET Compiler Platform that allow you to extend IntelliSense for anyone who installs your library. By implementing your own Code Analyzer you can take advantage of the compiler to alert your callers of mistakes in real-time. And, by also providing a Code Fix, you can even fix their mistakes for them!
In this talk I'll show you how you can write Code Analyzers for Visual Studio 2015 and ship them alongside your library in a NuGet package. We'll also take a look at several open source Code Analyzers to see how you can use them to improve the quality of your code.