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

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.
主站蜘蛛池模板: 绥宁县| 惠水县| 常宁市| 泸溪县| 正阳县| 雅江县| 堆龙德庆县| 佳木斯市| 东莞市| 南充市| 枞阳县| 墨脱县| 贵定县| 苏州市| 和田市| 吉林省| 襄樊市| 彭水| 桂阳县| 拜城县| 铁力市| 县级市| 长宁区| 临桂县| 山阴县| 沅江市| 渭南市| 玉龙| 开封县| 安仁县| 浮山县| 宁德市| 河源市| 佛山市| 云梦县| 团风县| 哈尔滨市| 禹城市| 太仓市| 旬阳县| 云南省|