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

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.
主站蜘蛛池模板: 盐亭县| 三亚市| 乡城县| 翼城县| 四平市| 黄山市| 辉县市| 沈阳市| 湘潭县| 陆河县| 南丹县| 岢岚县| 清苑县| 牟定县| 从化市| 淅川县| 津南区| 长葛市| 翼城县| 宝坻区| 鹤岗市| 白城市| 林周县| 定边县| 玉门市| 辉南县| 巴楚县| 荔浦县| 榆中县| 克拉玛依市| 宾川县| 山西省| 嘉荫县| 河南省| 新和县| 隆化县| 墨脱县| 化隆| 平定县| 龙口市| 若羌县|