Multi-target in the .csproj (<TargetFrameworks>net48;net8.0;net10.0</TargetFrameworks>, or netstandard2.0;net10.0 if you need no Framework-only APIs), use #if NETFRAMEWORK sparingly, and let dotnet pack produce one lib/<tfm> folder per target. Run the test suite on every target in CI. Only target supported runtimes: .NET 6 and 7 are out of support, so the modern targets are the LTS releases (.NET 8 and .NET 10).
Decide when to drop net48 from data, and review it regularly (for example each major release): NuGet download stats per framework, internal consumers' target frameworks, and support requests. Announce the removal a release ahead, and remove it in a major version because dropping a target is a breaking change.
Checks they can manage the lifecycle of a multi-targeted package
Last updated 23 Nov 2026.