explaingit

avaloniaui/live.avalonia

Analysis updated 2026-07-04 · repo last pushed 2023-11-01

445C#Audience · developerComplexity · 2/5DormantSetup · moderate

TLDR

A tool that lets you see UI changes instantly while building Avalonia desktop apps, without manually rebuilding or restarting. It watches your source files and refreshes the running app automatically when you save.

Mindmap

mindmap
  root((repo))
    What it does
      Hot reload UI
      Watches source files
      Auto recompiles project
    Tech stack
      C-sharp and F-sharp
      Avalonia framework
      dotnet watch build
    Use cases
      Tweak window layout
      Adjust colors and buttons
      Speed up design workflow
    Audience
      Desktop app developers
      Any text editor users
    Caveats
      Experimental status
      Manual XAML config needed
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Instantly see layout changes while tweaking an Avalonia desktop app's window design.

USE CASE 2

Adjust colors or move buttons around and watch the result update live on screen.

USE CASE 3

Keep your app's current data and state intact while the UI refreshes during development.

USE CASE 4

Edit Avalonia apps in any text editor, including Vim, without needing a specific IDE.

What is it built with?

C#F#Avalonia.NETdotnet watch build

How does it compare?

avaloniaui/live.avaloniauktrash/lsfg-desktopzettpw/kmstools
Stars445394363
LanguageC#C#C#
Last pushed2023-11-01
MaintenanceDormant
Setup difficultymoderateeasyeasy
Complexity2/51/52/5
Audiencedevelopergeneralops devops

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires adding the Live.Avalonia package to your project and manually editing project config to enable XAML live reloading.

The explanation does not mention a license, so the terms of use are unclear.

In plain English

Live.Avalonia brings hot reloading to Avalonia applications, meaning you can see your UI changes instantly as you edit your code, without needing to manually rebuild or restart the app every time. It is an experimental tool designed to save developers the repetitive cycle of clicking "Build & Run" in their IDE or typing a run command in the console. At a high level, the tool works by listening for any changes you make to your source files. When you save a file, it uses a built-in .NET feature called "dotnet watch build" to automatically recompile your project. Once the project is rebuilt, the tool takes your newly updated interface controls and seamlessly embeds them back into the running application window. A notable benefit is that it does not require a specific IDE, you can edit your code in any text editor, even Vim, and the app will refresh itself. This tool is for developers building desktop applications with the Avalonia framework. It is useful for anyone who wants to speed up their design and development workflow. For example, if you are tweaking the layout of a window, adjusting colors, or moving buttons around, you can save your file and immediately see the result on your screen. It also supports both C# and F# projects, including the Avalonia.FuncUI framework, making it flexible for different coding styles. Developers can even retain their app's current state during a refresh by keeping data in their ViewModels. There are a few caveats to keep in mind. The README notes that the project is experimental and was not extensively tested, so it might not work with every project setup, especially those with unusual build configurations. Additionally, by default, the watcher only listens for changes to C# or F# code files, to get live reloading working for XAML layout files as well, you need to manually add a specific line to your project configuration.

Copy-paste prompts

Prompt 1
How do I set up Live.Avalonia in my Avalonia project so I can see UI changes without rebuilding?
Prompt 2
Add live reloading to my Avalonia.FuncUI F# project using Live.Avalonia so changes refresh automatically.
Prompt 3
How do I configure Live.Avalonia to hot reload XAML layout files, not just C# and F# code files?
Prompt 4
Set up Live.Avalonia so my app keeps its current ViewModel state when the UI refreshes after a save.
Prompt 5
What build configurations might break Live.Avalonia and how do I avoid them in my Avalonia project?

Frequently asked questions

What is live.avalonia?

A tool that lets you see UI changes instantly while building Avalonia desktop apps, without manually rebuilding or restarting. It watches your source files and refreshes the running app automatically when you save.

What language is live.avalonia written in?

Mainly C#. The stack also includes C#, F#, Avalonia.

Is live.avalonia actively maintained?

Dormant — no commits in 2+ years (last push 2023-11-01).

What license does live.avalonia use?

The explanation does not mention a license, so the terms of use are unclear.

How hard is live.avalonia to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is live.avalonia for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub avaloniaui on gitmyhub

Verify against the repo before relying on details.