Diagrid.Aspire.Hosting.Dashboard
0.0.4
dotnet add package Diagrid.Aspire.Hosting.Dashboard --version 0.0.4
NuGet\Install-Package Diagrid.Aspire.Hosting.Dashboard -Version 0.0.4
<PackageReference Include="Diagrid.Aspire.Hosting.Dashboard" Version="0.0.4" />
<PackageVersion Include="Diagrid.Aspire.Hosting.Dashboard" Version="0.0.4" />
<PackageReference Include="Diagrid.Aspire.Hosting.Dashboard" />
paket add Diagrid.Aspire.Hosting.Dashboard --version 0.0.4
#r "nuget: Diagrid.Aspire.Hosting.Dashboard, 0.0.4"
#:package Diagrid.Aspire.Hosting.Dashboard@0.0.4
#addin nuget:?package=Diagrid.Aspire.Hosting.Dashboard&version=0.0.4
#tool nuget:?package=Diagrid.Aspire.Hosting.Dashboard&version=0.0.4
Diagrid Dashboard Aspire Integration
Getting Started
1 - Add the integration to your AppHost project
You can find the package on NuGet.
Add the package by running:
dotnet add package Diagrid.Aspire.Hosting.Dashboard
2 - Configure your AppHost
The dashboard needs a Dapr state store component. Describe it as a YamlSourceResource and pass it to AddDiagridDashboard:
var builder = DistributedApplication.CreateBuilder(args);
var username = builder.AddParameter("username", "local");
var password = builder.AddParameter("password", "zxczxc123", secret: true);
var postgres = builder.AddPostgres("postgres", username, password);
var daprState = postgres.AddDatabase("dapr-state", "dapr_state");
var stateComponent = builder.AddYamlFile("dashboard-state", new
{
apiVersion = "dapr.io/v1alpha1",
kind = "Component",
metadata = new { name = "state" },
spec = new
{
type = "state.postgresql",
version = "v1",
metadata = new object[]
{
new { name = "connectionString", value = ReferenceExpression.Create($"host={postgres.Resource.Name} user={username.Resource} password={password.Resource} port={postgres.Resource.PrimaryEndpoint.Property(EndpointProperty.TargetPort)} dbname={daprState.Resource.DatabaseName} sslmode=disable") },
new { name = "actorStateStore", value = "true" },
},
},
});
builder.AddDiagridDashboard(stateComponent)
.WaitFor(daprState);
builder.Build().Run();
This runs the Diagrid Dashboard container alongside the rest of your Aspire resources, automatically wired into the dashboard so you can open it directly from the Aspire UI. The state component YAML is materialized at startup and bind-mounted into the container, so nothing needs to be checked in or copied to the build output.
For the full list of supported component types, see the Dapr components reference.
3 - Configuring the Dashboard
By default, the integration runs the latest image and lets Aspire allocate an ephemeral host port for the dashboard's HTTP endpoint.
To override any of those, pass a DiagridDashboardConfiguration:
builder.AddDiagridDashboard(stateComponent, configuration: new DiagridDashboardConfiguration
{
// AppId = "diagrid-dashboard", // Optional, Dapr APP_ID inside the container
// ContainerName = "diagrid-dashboard", // Optional
// Version = "latest", // Optional, image tag
// Port = 8080, // Optional, fixed host port
});
Custom Naming
If you want to run more than one dashboard instance, or you'd just prefer a different resource name, pass a name:
builder.AddDiagridDashboard(stateComponent, name: "my-dashboard");
The returned IResourceBuilder<ContainerResource> can be chained with the usual Aspire builder extensions if you need to further customize the container.
Additional Resources
See the Diagrid Dashboard repository for more on the dashboard itself.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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.4.3)
- CopperDusk.Aspire.Hosting.Yaml (>= 0.0.4)
-
net8.0
- Aspire.Hosting.AppHost (>= 13.4.3)
- CopperDusk.Aspire.Hosting.Yaml (>= 0.0.4)
-
net9.0
- Aspire.Hosting.AppHost (>= 13.4.3)
- CopperDusk.Aspire.Hosting.Yaml (>= 0.0.4)
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.0.4 | 37 | 6/9/2026 |
| 0.0.3 | 123 | 5/21/2026 |
| 0.0.2 | 99 | 5/20/2026 |
| 0.0.1 | 112 | 5/5/2026 |
| 0.0.0-development | 36 | 6/9/2026 |