Skip to main content
CommunityToolkit.Diagnostics package icon

CommunityToolkit.Diagnostics

This package includes .NET Standard code only helpers such as: - Guard: Helper methods to verify conditions when running code. - ThrowHelper: Helper methods to efficiently throw exceptions.

Total Downloads
18.3M
18,339,027
Published
Nov 18, 2021
Latest stable version

Install

.NET CLI
dotnet add package CommunityToolkit.Diagnostics --version 7.1.2
Package Manager Console
Install-Package CommunityToolkit.Diagnostics -Version 7.1.2
PackageReference
<PackageReference Include="CommunityToolkit.Diagnostics" Version="7.1.2" />

Frameworks

.NETStandard1.4 net5.0 .NETStandard2.0 .NETStandard2.1

Dependencies

NETStandard.Library
.NETStandard1.4
[1.6.1, )
[4.3.0, )
System.Memory
.NETStandard1.4
[4.5.4, )
System.ValueTuple
.NETStandard1.4
[4.5.0, )
System.Memory
.NETStandard2.0
[4.5.4, )

Adoption guide

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

Compatibility metadata lists 4 target frameworks; confirm the exact target used by your application.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.