HotAvalonia.Fody 3.1.5

Prefix Reserved
dotnet add package HotAvalonia.Fody --version 3.1.5
                    
NuGet\Install-Package HotAvalonia.Fody -Version 3.1.5
                    
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="HotAvalonia.Fody" Version="3.1.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="HotAvalonia.Fody" Version="3.1.5" />
                    
Directory.Packages.props
<PackageReference Include="HotAvalonia.Fody" />
                    
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 HotAvalonia.Fody --version 3.1.5
                    
#r "nuget: HotAvalonia.Fody, 3.1.5"
                    
#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 HotAvalonia.Fody@3.1.5
                    
#: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=HotAvalonia.Fody&version=3.1.5
                    
Install as a Cake Addin
#tool nuget:?package=HotAvalonia.Fody&version=3.1.5
                    
Install as a Cake Tool

You probably don't want to install this package manually. Please, check out the main HotAvalonia package, which will set everything up for you automatically.

HotAvalonia.Fody

GitHub Build Status Version License

HotAvalonia.Fody is an optional Fody weaver designed to enhance the overall hot reload experience for HotAvalonia users.


Usage

Like any other Fody weaver, HotAvalonia.Fody can be configured either via FodyWeavers.xml, or directly in your project file using the WeaverConfiguration property, as can be seen below:

<PropertyGroup>
  <WeaverConfiguration>
    <Weavers>
      <HotAvalonia>
        <Solution Path="$(SolutionPath)">
          <Project Path="/home/user/projects/MyApp/src/MyApp/MyApp.csproj" AssemblyName="MyApp" />
          <Project Path="/home/user/projects/MyApp/src/MyApp.Desktop/MyApp.Desktop.csproj" AssemblyName="MyApp.Desktop" />
        </Solution>
        <PopulateOverride Enable="true" />
        <UseHotReload Enable="true" GeneratePathResolver="true" />
        <References Enable="false" Exclude="HotAvalonia.Core;Avalonia.Markup.Xaml.Loader" />
      </HotAvalonia>
    </Weavers>
  </WeaverConfiguration>
</PropertyGroup>

Here's a quick overview of the weaver-specific properties:

PopulateOverride

This feature weaver is responsible for injecting a small piece of logic into Avalonia resources (such as styles and resource dictionaries), allowing their original, precompiled Populate method to be overridden at runtime even in environments where method injection is unavailable.

Name Description Default Examples
Enable Sets a value indicating whether this feature weaver is enabled. false true <br> false

Note that for this weaver to work properly, Fody needs to run after Avalonia has finished compiling the XAML files; otherwise, there will be nothing to inject into. This can be achieved by:

<FodyDependsOnTargets>$(FodyDependsOnTargets);CompileAvaloniaXaml</FodyDependsOnTargets>

UseHotReload

This feature weaver is responsible for automatically invoking HotAvalonia.AvaloniaHotReloadExtensions.UseHotReload(AppBuilder) on the AppBuilder instance created during app initialization, thereby kicking HotAvalonia into action. Thanks to this, users do not need to modify their source code to enable hot reload for their application.

Name Description Default Examples
Enable Sets a value indicating whether this feature weaver is enabled. false true <br> false
GeneratePathResolver Sets a value indicating whether this feature weaver should automatically generate HotAvalonia.AvaloniaHotReloadExtensions.ResolveProjectPath(Assembly) based on the <Solution> element, if this method does not already exist. false true <br> false

References

This feature weaver is responsible for removing specified assembly references from the main module definition of your project and cleaning up related copy-local paths.

Name Description Default Examples
Enable Sets a value indicating whether this feature weaver is enabled. false true <br> false
Exclude Provides a semicolon-separated list of assembly names, all mentions of which should be erased from the target project. N/A HotAvalonia.Core;Avalonia.Markup.Xaml.Loader

License

Licensed under the terms of the MIT License.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.0

NuGet packages (1)

Showing the top 1 NuGet packages that depend on HotAvalonia.Fody:

Package Downloads
HotAvalonia

An IDE-agnostic hot reload plugin for Avalonia that lets you see UI changes in real time as you edit XAML files, drastically accelerating your design and development workflow.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.1.5 19,286 9/11/2026
3.1.4 37,321 7/18/2026
3.1.3 16,497 6/27/2026
3.1.2 287 6/26/2026
3.1.1 7,689 5/30/2026
3.1.0 44,312 2/2/2026
3.0.2 25,819 12/12/2025
3.0.1 3,167 12/3/2025
3.0.0 37,618 3/23/2025
2.1.0 337 12/19/2024