AvaloniaWebview.React.Vite 0.19.0

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

AvaloniaWebview.React.Vite

Install this extension alongside AvaloniaWebview.React to start a Vite frontend when an Avalonia host is built in Debug configuration. It starts Node directly with Vite's CLI, installs dependencies with npm ci when node_modules is missing, and waits until the configured URL accepts a connection.

Configure the project directory and URL in the host .csproj:

<PropertyGroup>
  <AvaloniaReactDevServerDirectory>$(MSBuildProjectDirectory)\..\ClientApp</AvaloniaReactDevServerDirectory>
  <AvaloniaReactDevServerUrl>http://127.0.0.1:5173/</AvaloniaReactDevServerUrl>
</PropertyGroup>

Node.js and npm must be installed. Set AvaloniaReactAutoStart to false to disable automatic launch. The process stays alive after the build so the desktop app can connect, and AvaloniaReactWebView stops the server process tree when the host exits.

The AvaloniaWebview.React package emits the resolved source mode and this URL as assembly metadata, so SourceMode="Auto" on AvaloniaReactWebView connects to the Vite server in Debug builds without any application code. Set AvaloniaReactDefaultSourceMode to override the mode or AvaloniaReactEmitAssemblyMetadata=false to disable the metadata.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • net10.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.19.0 137 10/18/2026
0.18.0 128 10/18/2026
0.16.2 121 10/18/2026
0.16.1 127 10/18/2026