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

Diagrid Dashboard Aspire Integration

NuGet Version

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 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. 
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
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