Fig.Aspire 3.7.2

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

Fig.Aspire

.NET Aspire hosting integration for Fig - Centralized Settings Management for .NET Microservices.

Installation

dotnet add package Fig.Aspire

Usage

Adding Fig API

Add the Fig API container to your Aspire AppHost:

var builder = DistributedApplication.CreateBuilder(args);

var figApi = builder.AddFigApi("fig-api");

builder.AddProject<Projects.MyService>("myservice")
    .WithReference(figApi);

builder.Build().Run();

When you use WithReference(figApi), an environment variable named FIG_API_URI will be automatically injected into your service with the Fig API's HTTP endpoint URL.

Adding Fig Web

Add the Fig Web container for the web-based configuration UI:

var builder = DistributedApplication.CreateBuilder(args);

var figApi = builder.AddFigApi("fig-api");
var figWeb = builder.AddFigWeb("fig-web")
    .WithFigApiReference(figApi);

builder.Build().Run();

Container Images

This integration uses the following container images from Docker Hub by default:

  • Fig API: mzbrau/fig-api
  • Fig Web: mzbrau/fig-web

Using a Custom Registry

If your organisation mirrors or hosts Fig images in a private container registry, pass the fully-qualified image name via the image parameter:

var figApi = builder.AddFigApi("fig-api", image: "myregistry.example.com/myorg/fig-api");
var figWeb = builder.AddFigWeb("fig-web", image: "myregistry.example.com/myorg/fig-web")
    .WithFigApiReference(figApi);

The tag parameter continues to work as normal alongside a custom image:

var figApi = builder.AddFigApi("fig-api", tag: "3.1.0", image: "myregistry.example.com/myorg/fig-api");

Environment Variables

When using WithReference(figApi) on your project, the following environment variable is injected:

  • FIG_API_URI: The HTTP URL of the Fig API endpoint

More Information

Product Compatible and additional computed target framework versions.
.NET 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

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
3.7.2 141 5/22/2026
3.7.1 103 5/17/2026
3.7.0 123 5/11/2026
3.6.1 116 5/7/2026
3.6.0 138 5/3/2026
3.5.1 263 4/22/2026
3.5.0 117 4/19/2026
3.4.3 145 4/15/2026
3.4.2 130 4/13/2026
3.4.1 128 4/13/2026
3.4.0 134 3/31/2026
3.3.0 237 2/9/2026
3.2.4 158 1/29/2026
3.2.2 118 1/29/2026
3.1.1 288 12/29/2025