官术网_书友最值得收藏!

Introduction

Diagnostic analyzers are extensions to the Roslyn C# compiler and Visual Studio IDE to analyze user code and report diagnostics. The user will see these diagnostics in the error list after building the project from Visual Studio and even when building the project on the command line. They will also see the diagnostics live while editing the source code in the Visual Studio IDE. Analyzers can report diagnostics to enforce specific code styles, improve code quality and maintenance, recommend design guidelines, or even report very domain-specific issues, which cannot be covered by the core compiler.

Analyzers can be installed in a .NET project either as a NuGet package or as a VSIX. To get a better understanding of these packaging schemes and learn about the differences in the analyzer experience when installed as a NuGet package versus a VSIX, it is recommended that you read the introduction part of the recipe Publishing NuGet package and VSIX for an analyzer project in Chapter 1, Writing Diagnostic Analyzers.

Analyzers are supported on various different flavors of .NET Standard, .NET Core, and .NET Framework projects, for example, class library, console app, and so on.
主站蜘蛛池模板: 阳高县| 永清县| 新余市| 盈江县| 乐平市| 澳门| 稷山县| 兴隆县| 恩平市| 紫阳县| 邮箱| 克山县| 博白县| 贵阳市| 丰原市| 伊金霍洛旗| 紫阳县| 南郑县| 加查县| 凯里市| 兖州市| 青岛市| 潮安县| 井冈山市| 青冈县| 利辛县| 克拉玛依市| 海林市| 禄劝| 青河县| 洛隆县| 衡东县| 如东县| 裕民县| 湖州市| 册亨县| 唐山市| 师宗县| 象州县| 新疆| 许昌县|