更新时间:2021-07-15 17:08:20
cover
Title Page
Copyright
Roslyn Cookbook
Credits
About the Author
Acknowledgments
About the Reviewer
www.PacktPub.com
Why subscribe?
Customer Feedback
Dedication
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
Writing Diagnostic Analyzers
Introduction
Creating debugging and executing an analyzer project in Visual Studio
Getting ready
How to do it...
How it works...
Creating a symbol analyzer to report issues about symbol declarations
There s more...
See also
Creating a syntax node analyzer to report issues about language syntax
Creating a syntax tree analyzer to analyze the source file and report syntax issues
Creating a method body analyzer to analyze whole method and report issues
Creating a compilation analyzer to analyze whole compilation and report issues
Writing unit tests for an analyzer project
Publishing NuGet package and VSIX for an analyzer project
Consuming Diagnostic Analyzers in .NET Projects
Searching and installing analyzers through the NuGet package manager
Searching and installing VSIX analyzers through the VS extension gallery
Viewing and configuring analyzers in solution explorer in Visual Studio
Using the ruleset file and Rule Set editor to configure analyzers
There's more...
Writing IDE Code Fixes Refactorings and Intellisense Completion Providers
Creating debugging and executing a CodeFixProvider to fix a compiler warning
Applying batch code fixes (FixAll) across different scopes: document project and solution
Creating a custom FixAllProvider to fix all occurrences of an issue across a scope
Creating a CodeRefactoringProvider to refactor source code to recommend using C# 7.0 tuples
Creating a CompletionProvider to provide additional intellisense items while editing code.
Writing unit tests for a CodeFixProvider