Microsoft.Toolkit.Diagnostics 7.1.2

.NET 5.0 .NET Standard 1.4
Suggested Alternatives


Additional Details

The Diagnostics package has now migrated to the CommunityToolkit.Diagnostics identity

dotnet add package Microsoft.Toolkit.Diagnostics --version 7.1.2
NuGet\Install-Package Microsoft.Toolkit.Diagnostics -Version 7.1.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microsoft.Toolkit.Diagnostics" Version="7.1.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Microsoft.Toolkit.Diagnostics --version 7.1.2
#r "nuget: Microsoft.Toolkit.Diagnostics, 7.1.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Microsoft.Toolkit.Diagnostics as a Cake Addin
#addin nuget:?package=Microsoft.Toolkit.Diagnostics&version=7.1.2

// Install Microsoft.Toolkit.Diagnostics as a Cake Tool
#tool nuget:?package=Microsoft.Toolkit.Diagnostics&version=7.1.2

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.

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp1.0 netcoreapp1.1 netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard1.4 netstandard1.5 netstandard1.6 netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48 net481
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen30 tizen40 tizen60
Universal Windows Platform uap uap10.0
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (21)

Showing the top 5 NuGet packages that depend on Microsoft.Toolkit.Diagnostics:

Package Downloads

Smart responsive images in EPiServer with ImageResizing.Net and Focal point


Dtos for MSIm Api


This library allows to run commands in a testable way: executor.Execute(command); Read more from here:


ニコニコ動画/生放送の.Net向けサードパーティライブラリです。 - Account (Login with mail/password) - Video (Play, Comment) - Activity (Video History) - Channels (Videos) - Follow (Tag, User, Mylist, Channel, Community) - Likes (Video) - Live (Play, Comment, TimeShift) - Mylist (List videos, Edit MylistGroup) - NicoRepo - Ranking (Video) - Series (List videos) - User - SnapshotSearchV2 (Video) - Search (Video/Mylist/Live)

Ashampoo.Translation.Systems.Formats.Gengo The ID prefix of this package has been reserved for one of the owners of this package by

Package containing the implementation for the Gengo format.

GitHub repositories (4)

Showing the top 4 popular GitHub repositories that depend on Microsoft.Toolkit.Diagnostics:

Repository Stars
The Windows Community Toolkit is a collection of helpers, extensions, and custom controls. It simplifies and demonstrates common developer tasks building .NET apps with UWP and the Windows App SDK / WinUI 3 for Windows 10 and Windows 11. The toolkit is part of the .NET Foundation.
Wow. Yet another Pixiv client!
An all-in-one scanner app built for the Universal Windows Platform
It's your music. Play it your way.
Version Downloads Last updated
7.1.2 427,304 11/18/2021
7.1.1 36,463 10/19/2021
7.1.0 24,767 9/23/2021
7.1.0-rc2 201 9/17/2021
7.1.0-rc1 398 8/30/2021
7.1.0-preview1 189 8/5/2021
7.0.2 86,842 5/12/2021
7.0.1 2,144 3/29/2021
7.0.0 6,432 3/11/2021
7.0.0-preview5 615 2/24/2021