AvaloniaUI.DiagnosticsSupport 2.2.1

Prefix Reserved
dotnet add package AvaloniaUI.DiagnosticsSupport --version 2.2.1
                    
NuGet\Install-Package AvaloniaUI.DiagnosticsSupport -Version 2.2.1
                    
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.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AvaloniaUI.DiagnosticsSupport" Version="2.2.1" />
                    
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.1
                    
#r "nuget: AvaloniaUI.DiagnosticsSupport, 2.2.1"
                    
#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.1
                    
#: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.1
                    
Install as a Cake Addin
#tool nuget:?package=AvaloniaUI.DiagnosticsSupport&version=2.2.1
                    
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 (6)

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

Package Downloads
TuDog.LoggerMetrics

Package Description

YouYan.Hamster

Package Description

TuDog.IocAttribute

Package Description

TuDog

An MVVM toolkit targeted at the Avalonia framework

TuDog.IocAutoRegisterSourceGenerator

avalonia 注入源代码生成器

GitHub repositories (52)

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

Repository Stars
ShareX/ShareX
ShareX is a free and open-source application that enables users to capture or record any area of their screen with a single keystroke. It also supports uploading images, text, and various file types to a wide range of destinations.
AvaloniaUI/Avalonia
Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The future of .NET UI
Devolutions/UniGetUI
UniGetUI: The Graphical Interface for your package managers. Could be terribly described as a package manager manager to manage your package managers
SubtitleEdit/subtitleedit
the subtitle editor :)
PixiEditor/PixiEditor
PixiEditor is a Universal Editor for all your 2D needs
Ruben2776/PicView
Fast, free and customizable picture viewer
Pixeval/Pixeval
Wow. Yet another Pixiv client!
ClassIsland/ClassIsland
一款功能强、可定制、跨平台,适用于班级多媒体屏幕的课表信息显示工具,可以一目了然地显示各种信息。
irihitech/Semi.Avalonia
Avalonia theme inspired by Semi Design
KirillOsenkov/MSBuildStructuredLog
A logger for MSBuild that records a structured representation of executed targets, tasks, property and item values.
sn4k3/NetSonar
Network pings and other utilities
sn4k3/UVtools
MSLA/DLP, file analysis, calibration, repair, conversion and manipulation
irihitech/Ursa.Avalonia
Ursa is an enterprise level UI library for building cross-platform applications with Avalonia UI.
AvaloniaCommunity/Material.Avalonia
Material design in AvaloniaUI
AvaloniaUI/AvaloniaEdit
Avalonia-based text editor (port of AvalonEdit)
NetSparkleUpdater/NetSparkle
NetSparkle is a C#, cross-platform, highly-configurable software update framework with pre-built UI for .NET developers compatible with .NET 4.6.2/.NET 6+, WinForms, WPF, and Avalonia; uses Ed25519 signatures. View basic usage here in the README and try the samples for yourself.
Consolonia/Consolonia
A cross-platform UI framework for .NET.
AtomUI/AtomUI
AtomUI leverages Avalonia's robust cross-platform capabilities to implement the Ant Design system for .NET, dedicated to delivering its refined design language and efficient user experience to cross-platform desktop application development.
angelsix/youtube
Any general files related to the AngelSix YouTube channel
AvaloniaUI/avalonia-dotnet-templates
Avalonia Templates for `dotnet new`
Version Downloads Last Updated
2.2.1 88,406 4/14/2026
2.2.0 18,874 4/7/2026
2.2.0-beta3 16,774 3/7/2026
2.2.0-beta2 12,994 1/23/2026
2.2.0-beta1 183 1/19/2026
2.1.1 42,214 11/13/2025
2.1.0 6,752 10/13/2025
2.0.4 8,616 6/18/2025
2.0.3 3,613 4/15/2025
2.0.2 619 4/9/2025
2.0.1 748 4/8/2025