AvaloniaUI.DiagnosticsSupport 2.2.0

Prefix Reserved
dotnet add package AvaloniaUI.DiagnosticsSupport --version 2.2.0
                    
NuGet\Install-Package AvaloniaUI.DiagnosticsSupport -Version 2.2.0
                    
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="AvaloniaUI.DiagnosticsSupport" Version="2.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AvaloniaUI.DiagnosticsSupport" Version="2.2.0" />
                    
Directory.Packages.props
<PackageReference Include="AvaloniaUI.DiagnosticsSupport" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AvaloniaUI.DiagnosticsSupport --version 2.2.0
                    
#r "nuget: AvaloniaUI.DiagnosticsSupport, 2.2.0"
                    
#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.
#:package AvaloniaUI.DiagnosticsSupport@2.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AvaloniaUI.DiagnosticsSupport&version=2.2.0
                    
Install as a Cake Addin
#tool nuget:?package=AvaloniaUI.DiagnosticsSupport&version=2.2.0
                    
Install as a Cake Tool

Avalonia Diagnostics Support

The Diagnostics Support package is responsible for establishing a connection bridge between the user app and AvaloniaUI Developer Tools process.

This package can be installed either in the executable project with your Program AppBuilder or shared project with your Application, depending on your application's architecture.

Getting Started

For a complete guide on setting up and using Developer Tools with this package, see the Developer Tools Getting Started Guide.

Prerequisites

Support package requires Avalonia 11.2.0 or newer, and built on .NET Standard 2.0 compatible APIs.

This package is compatible with Browser and Android/iOS projects.

Installation

Install the Diagnostics Support package in your project:

dotnet add package AvaloniaUI.DiagnosticsSupport

:::note

Old package Avalonia.Diagnostics can be safely removed. It's not used by new Developer Tools.

:::

Configuration

Once the DiagnosticsSupport package is installed, you need to enable it in your Application class:

public override void Initialize()
{
    AvaloniaXamlLoader.Load(this);

#if DEBUG
    this.AttachDeveloperTools();
#endif
}

These methods also accept DeveloperToolsOptions options class allowing to customize Diagnostics Support setup.

Browser and Mobile Support

For special configuration requirements when working with browser or mobile platforms, see Attaching to Browser or Mobile Applications.

Usage

When your target app is running with the Diagnostics Support package configured, press F12 to initialize connection. The package will automatically establish a bridge with the AvaloniaUI Developer Tools if it's available on your system.

Troubleshooting

If you encounter issues with the connection or setup, check the Developer Tools FAQ for common solutions.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on AvaloniaUI.DiagnosticsSupport:

Package Downloads
Agibuild.Modulus.UI.Avalonia

Avalonia UI components library for Modulus framework

GitHub repositories (8)

Showing the top 8 popular GitHub repositories that depend on AvaloniaUI.DiagnosticsSupport:

Repository Stars
Consolonia/Consolonia
A cross-platform UI framework for .NET.
Actipro/Avalonia-Controls
Actipro Avalonia Controls samples and documentation. Build beautiful user interfaces in your Avalonia applications using Actipro's controls and themes.
ShareX/XerahS
XerahS is a cross platform reimagining of the ShareX user interface built with Avalonia. It targets modern UX modular architecture and long term maintainability while preserving core workflows speed and reliability. It provides a foundation for future desktop experiences on Windows, macOS, and Linux with consistent accessible design.
AvaloniaUI/Avalonia.HtmlRenderer
Avalonia front-end for the HtmlRenderer project.
CalyPdf/Caly
Cross-platform Pdf Reader Application
Euterpe-org/Euterpe
The community platform for Muse Dash custom charts, mods, and creator tooling.
SuperJMN/DotnetPackaging
Distribute your .NET applications!
xiSage/ncmdump-net
将网易云音乐的ncm文件转换为mp3/flac的库、控制台应用、GUI应用和Web应用。
Version Downloads Last Updated
2.2.0 5,225 4/7/2026
2.2.0-beta3 10,064 3/7/2026
2.2.0-beta2 11,332 1/23/2026
2.2.0-beta1 163 1/19/2026
2.1.1 34,137 11/13/2025
2.1.0 6,268 10/13/2025
2.0.4 8,389 6/18/2025
2.0.3 3,586 4/15/2025
2.0.2 604 4/9/2025
2.0.1 574 4/8/2025