Repository navigation
feat: run the DevTools inspector from a NuGet package - #649
Merged
StevenTCramer merged 6 commits intoOct 16, 2026
Merged
StevenTCramer merged 6 commits into
StevenTCramer merged 6 commits into
Conversation
An AppHost outside this repo cannot find the inspector by walking to its csproj. Hosting now starts the published dll from TimeWarp.State.DevTools.App. Co-Authored-By: Grok <grok@x.ai>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Publish mode was still pointing the inspected app at the excluded inspector. The launch command now follows the AppHost's .NET host, the inspector is published after its own build, and the package tools folder omits development files. Co-Authored-By: Grok <grok@x.ai>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
StevenTCramer
deleted the
task/118-package-state-devtools-inspector-as-plugin-1-for-t
branch
October 16, 2026 02:19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
TimeWarp.State.DevTools.App12.0.0-beta.14 is one framework-dependent package (no runtime identifier,UseAppHost=false). Itstools/folder is the published inspector.TimeWarp.State.DevTools.Hostingdepends on that package at the same version. The package targets stamptimewarpstatedevtoolspathonto the AppHost.AddTimeWarpStateDevTools()starts that dll with the AppHost's .NET host:DOTNET_HOST_PATHwhen it is set, otherwise the runningdotnetmuxer, otherwiseDOTNET_ROOT/dotnet, otherwisedotnet. The resource is anExecutableResourcenamedtimewarp-state-devtools, the endpoint name is stillhttp, andExcludeFromManifestkeeps it out of publish output. In publish mode,WithTimeWarpStateDevToolsreturns the inspected resource unchanged: noWaitForon the inspector and noTIMEWARP_STATE_DEVTOOLS_ENDPOINT.DevToolsProjectLocatorandTIMEWARP_STATE_DEVTOOLS_PROJECTare gone.AddTimeWarpStateDevToolsProject(projectPath)is the explicit inner-loop switch. The sample AppHost uses the same publicAddTimeWarpStateDevTools()call. The inspector still has its own store. The package build publishes the inspector after that project's build (NoBuildon the publish). Pack omitsappsettings.Development.json,tsconfig.json,web.config, and*.xmlfromtools/and still ships the pdbs.Test plan
Smoke:
dotnet test tests/timewarp-state-devtools-tests/timewarp-state-devtools-tests.csproj.Expect: 66 passed.
AddTimeWarpStateDevTools_Should.LeaveTheInspectedAppUnwiredWhenPublishingbuilds with--operation publishand finds noWaitAnnotationon the inspector and noTIMEWARP_STATE_DEVTOOLS_ENDPOINTcallback.ResolveTheDotNetHostInOrdercovers host path, muxer,DOTNET_ROOT/dotnet, thendotnet.PackagedDevToolsApp_Should.StartFromAnOutOfTreeAppHostpacks App and Hosting into a temp feed, builds an Aspire AppHost outside this repo that only package-references Hosting, and starts the packaged dll with the resource's command, the dll directory as the working directory, and onlyASPNETCORE_HTTP_PORTS. The nupkg containstools/wwwroot/_framework/blazor.web.jsand atools/*.pdb, and does not containappsettings.Development.json,tsconfig.json,web.config, or*.xmlundertools/. GET/returns a body containingTimeWarp State DevTools. GET/_framework/blazor.web.jsreturns 200. The stamped path istools/TimeWarp.State.DevTools.dllunder the restoredtimewarp.state.devtools.apppackage, not a csproj in this repo.ganda repo auditexits 0. The kebab-path advisory remains (Blazor*.lib.module.*names, backlog 110, and the NuGetTimeWarp.State.DevTools.App.targetsfilename).Kanban task 118
Session: 1230420