AnalysisLevel
The build property that selects which set of .NET code-analysis rules is on by default and at what severity.
In more detail
Raising it turns on newer and stricter rules as the SDK adds them. latest-recommended enables the recommended rules for the SDK in use, a sensible default to raise the quality bar in one line.
Related terms
- Roslyn analyzer — A plug-in to the C# compiler that inspects code while you edit and build, and reports diagnostics about likely bugs, unsafe patterns or style.
- Directory.Build.props — An MSBuild file placed in a folder that every project in that folder and below imports automatically, used for shared build settings.
Taught in
- Directory.Build.props, global.json and Central Packages — Modern .NET Core, C# & Enterprise Microservices