Fig.Aspire
3.7.2
dotnet add package Fig.Aspire --version 3.7.2
NuGet\Install-Package Fig.Aspire -Version 3.7.2
<PackageReference Include="Fig.Aspire" Version="3.7.2" />
<PackageVersion Include="Fig.Aspire" Version="3.7.2" />
<PackageReference Include="Fig.Aspire" />
paket add Fig.Aspire --version 3.7.2
#r "nuget: Fig.Aspire, 3.7.2"
#:package Fig.Aspire@3.7.2
#addin nuget:?package=Fig.Aspire&version=3.7.2
#tool nuget:?package=Fig.Aspire&version=3.7.2
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 | Versions 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. |
-
net10.0
- Aspire.Hosting.AppHost (>= 13.3.2)
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 |