Skip to main content
net8.0net9.0.NETStandard2.0

This package extends Microsoft Testing Platform to provide an implementation of the Hang Dump using Windows mini dump. Microsoft Testing is a set of platform, framework and protocol intended to make it possible to run any test on any target or device.

Published
Oct 6, 2026
28d ago
Total Downloads
4.9M
4,892,363

Install

dotnet add package Microsoft.Testing.Extensions.HangDump --version 2.5.0
ProductVersions
.NET
net8.0net9.0
.NET Standard
netstandard2.0

README

Microsoft.Testing.Extensions.HangDump

Microsoft.Testing.Extensions.HangDump is an extension for Microsoft.Testing.Platform that captures a memory dump when the test host process appears to be hung (exceeds a configurable timeout).

Microsoft.Testing.Platform is open source. You can find Microsoft.Testing.Extensions.HangDump code in the microsoft/testfx GitHub repository.

Install the package

dotnet add package Microsoft.Testing.Extensions.HangDump

About

This package extends Microsoft.Testing.Platform with:

  • Hang detection: monitors the test host process and detects when it exceeds a configurable timeout without any activity.
  • Dump collection: captures a memory dump of the hanging process for post-mortem analysis
  • Deadlock investigation: collected dumps can be analyzed with tools like Visual Studio, WinDbg, or dotnet-dump to diagnose deadlocks and other hang causes

The timeout defaults to 30m and can be configured in values such as 90s, 5m, or 1.5h.

Usage

Enable hang dump collection via the --hangdump command line option, and configure the timeout with --hangdump-timeout.

Related packages

Documentation

For this extension, see https://learn.microsoft.com/dotnet/core/testing/microsoft-testing-platform-crash-hang-dumps#hang-dump.

For comprehensive documentation, see https://aka.ms/testingplatform.

Feedback & contributing

Microsoft.Testing.Platform is an open source project. Provide feedback or report issues in the microsoft/testfx GitHub repository.

Changes from Previous Version

No structural changes between v2.4.1 and v2.5.0.

Adoption Assessment

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 3 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.