TimeWarp.State.DevTools.Hosting 12.0.0-beta.19

Prefix Reserved
This is a prerelease version of TimeWarp.State.DevTools.Hosting.
dotnet add package TimeWarp.State.DevTools.Hosting --version 12.0.0-beta.19
                    
NuGet\Install-Package TimeWarp.State.DevTools.Hosting -Version 12.0.0-beta.19
                    
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="TimeWarp.State.DevTools.Hosting" Version="12.0.0-beta.19" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TimeWarp.State.DevTools.Hosting" Version="12.0.0-beta.19" />
                    
Directory.Packages.props
<PackageReference Include="TimeWarp.State.DevTools.Hosting" />
                    
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 TimeWarp.State.DevTools.Hosting --version 12.0.0-beta.19
                    
#r "nuget: TimeWarp.State.DevTools.Hosting, 12.0.0-beta.19"
                    
#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 TimeWarp.State.DevTools.Hosting@12.0.0-beta.19
                    
#: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=TimeWarp.State.DevTools.Hosting&version=12.0.0-beta.19&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=TimeWarp.State.DevTools.Hosting&version=12.0.0-beta.19&prerelease
                    
Install as a Cake Tool

TimeWarp.State.DevTools.Hosting

Aspire integration that starts the TimeWarp DevTools inspector and links it from the dashboard.

Dev-only. Production app packages do not reference it. There is no time-travel channel.

AppHost

IResourceBuilder<ExecutableResource> devtools = builder.AddTimeWarpStateDevTools();
builder.AddDotnetProject("my-app", "../my-app/my-app.csproj")
  .WithTimeWarpStateDevTools(devtools);

AddDotnetProject comes from Aspire.Hosting.Dotnet, which this package references. Aspire 17 replaced AddProject with it. The AppHost uses Microsoft.NET.Sdk with an Aspire.Hosting.AppHost package reference. Aspire.AppHost.Sdk is obsolete in Aspire 17 (ASPIRE012).

Reference this package. It depends on TimeWarp.State.DevTools.App at the same version. That package contains the published inspector at tools/TimeWarp.State.DevTools.dll. The publish is framework-dependent and has no runtime identifier. Aspire starts the dll with the .NET host from DOTNET_HOST_PATH, then the running dotnet muxer, then DOTNET_ROOT/dotnet, then dotnet on PATH.

The package targets stamp assembly metadata timewarpstatedevtoolspath on the AppHost. AddTimeWarpStateDevTools reads that path and adds an executable resource. No source tree, no folder walk, and no environment variable is required.

The default resource name is timewarp-devtools. The dashboard shows the resource endpoint as TimeWarp DevTools. A caller can pass a different name to AddTimeWarpStateDevTools.

The resource declares an HTTP endpoint named http. Aspire injects the target port as ASPNETCORE_HTTP_PORTS. In run mode the executable also gets ASPNETCORE_ENVIRONMENT=Development. The published tools/ folder has no launch profile, and ingest CORS is registered only in Development. Publish mode does not set that variable. The resource is excluded from the publish manifest. WithTimeWarpStateDevTools does nothing in publish mode, so the inspected app's publish output does not reference the inspector.

WithTimeWarpStateDevTools sets TIMEWARP_STATE_DEVTOOLS_ENDPOINT on the inspected resource and waits for the inspector when the AppHost is running. The app calls AddTimeWarpStateDevToolsExporter() from package TimeWarp.State.DevTools.Export. Aspire's own OTLP endpoint is unchanged, so the dashboard still receives traces.

The same call adds the inspected app's https and http endpoints to TIMEWARP_STATE_DEVTOOLS_CORS_ORIGINS on the inspector. A later WithTimeWarpStateDevTools on another app adds that app's origins to the same list. The inspector allows browser posts only from those origins, and only in Development, and only on POST /ingest/spans. Publish mode adds neither variable. The browser reads the origin from GET {base}/_timewarp/state-devtools on the inspected app (MapTimeWarpStateDevToolsClientConfig), including a path base, and posts with TimeWarp.State.DevTools.Wasm.

Inner loop on the inspector

AddTimeWarpStateDevToolsProject(projectPath) adds that csproj with AddDotnetProject and returns IResourceBuilder<DotnetProjectResource>. The path is an argument. The sample AppHost does not call it. Use it only while changing the inspector project itself.

When Aspire ships a dashboard plugin model, this companion app is the page to port.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
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
12.0.0-beta.19 99 11/19/2026
12.0.0-beta.17 115 11/6/2026
12.0.0-beta.16 173 10/31/2026
12.0.0-beta.15 331 10/16/2026
12.0.0-beta.14 77 10/16/2026
12.0.0-beta.13 68 10/13/2026
12.0.0-beta.12 62 10/12/2026
12.0.0-beta.11 66 10/12/2026