Install Fluence.Wpf in a project
Fluence.Wpf is published on nuget.org with the package ID Fluence.Wpf. Add the latest stable release to your WPF application project:
dotnet package add Fluence.Wpf --project YourApp.csproj
The dotnet package add form uses the .NET 10 SDK. With the .NET 9 SDK or earlier, use dotnet add YourApp.csproj package Fluence.Wpf. Add --version <version> to either command to pin a specific release. See the Microsoft CLI reference.
In Visual Studio, open Manage NuGet Packages for the WPF project, search for Fluence.Wpf, choose a version, and install. In Package Manager Console:
Install-Package Fluence.Wpf -ProjectName YourApp
After adding the package, build a first app.
Use a source checkout
To build against unreleased changes, clone the Fluence.Wpf library repository separately from this website. Run the commands in the next two sections from the library checkout root, with $appProject set to the actual path of your WPF application's .csproj file. If you already have the library checkout, use it instead of cloning again.
git clone https://github.com/sintaxasn/Fluence.Wpf.git
Set-Location ./Fluence.Wpf
$appProject = 'C:\path\to\YourApp\YourApp.csproj' # Replace with your app's actual project path.
Reference the library project
From the library checkout root, add a project reference to your WPF application:
dotnet add $appProject reference ./Fluence.Wpf/Fluence.Wpf.csproj
Build a local NuGet package
Pack the library checkout and add the resulting local package to your application. Read the package version from the same project and configuration.
dotnet pack ./Fluence.Wpf/Fluence.Wpf.csproj -c Release -o ./artifacts
$packageSource = (Resolve-Path ./artifacts).Path
$version = (dotnet msbuild ./Fluence.Wpf/Fluence.Wpf.csproj -getProperty:PackageVersion -p:Configuration=Release -p:TargetFramework=net472 -nologo).Trim()
dotnet add $appProject package Fluence.Wpf --version $version --no-restore
dotnet restore $appProject --source $packageSource --source https://api.nuget.org/v3/index.json
The Fluence package comes from the local output directory. The additional source lets NuGet resolve its package dependencies; use your configured dependency feed instead if required by your environment.
Initialize resources
Build a first app to initialize the theme and open a window.