Skip to main content

Install

global.json
YourProject.csproj

SDK Variants

Included

All variants:
  • Roslyn analyzers for code quality
  • Banned APIs enforcement (legacy → modern)
  • Throw.IfNull() guard clauses
  • LangVersion latest, nullable enabled
  • Polyfills for netstandard2.0 targets
Web variant adds:
  • OpenTelemetry integration (logging, metrics, tracing)
  • Health endpoints (/health, /alive)
  • HTTP resilience via Polly
Test variant adds:
  • xUnit v3 with Microsoft Testing Platform
  • Code coverage collection

Requirements

Central Package Management required. Create this file if you don’t have it:
Directory.Packages.props

Get started

Step-by-step installation guide