Skip to content

docs: Add App Model API documentation for CORS, console apps, resource naming, and networking - #454

Merged
David Pine (IEvangelist) merged 4 commits into
mainfrom
copilot/add-docs-for-app-model-api
Oct 13, 2026
Merged

David Pine (IEvangelist) merged 4 commits into
mainfrom
copilot/add-docs-for-app-model-api

Conversation

Copilot AI commented Feb 20, 2026 •

Copy link
Copy Markdown
Contributor

Addresses gaps identified from 20K+ Discord community messages where users had no documentation for several common AppHost scenarios.

New pages

  • app-host/resource-naming.mdx — How resource names map to env vars (ConnectionStrings__<name>, services__<name>__<endpoint>__0), the dash→underscore transformation (my-service → ConnectionStrings__my_service), naming best practices (dashes preferred, underscores valid), and resource name validation rules (links to ASPIRE006 diagnostic).

  • app-host/console-apps.mdx — Adding .NET console/worker projects to AppHost via AddProject, plus links to AddExecutable, AddPythonApp, and AddNodeApp for non-.NET apps. Covers wiring service discovery on non-ASP.NET Core hosts, BackgroundService patterns, WithExplicitStart() for interactive apps, and dashboard console output.

  • app-host/cors-configuration.mdx — When CORS is (and isn't) needed with Aspire, ASP.NET Core Minimal API middleware setup with AddCors/UseCors, environment-based origins, using WithReference(frontend) to auto-inject the frontend URL into API CORS config, common failure patterns (middleware ordering, preflight, credentials), and dashboard CORS env var.

Updated pages

  • fundamentals/networking-overview.mdx — Two new sections:
    • Binding to all interfaces for LAN access — 0.0.0.0 configuration for ASP.NET Core projects, containers (clarifying WithHttpEndpoint maps ports only; the app must also bind via WithEnvironment), and executables
    • Container-to-host networking — host gateway address platform table, WithReference for automatic cross-platform host resolution, AddConnectionString for existing host services, and KnownNetworkIdentifiers

Sidebar

Added all three new pages under the AppHost section in docs.topics.ts with Japanese (ja) translations.

Original prompt

This section details on the original issue you should resolve

<issue_title>[Discord Feedback] App Model API gaps - CORS, console apps, naming, networking</issue_title>
<issue_description>## Summary

Based on analysis of 20,415 Discord messages + 147 #help threads from the Aspire community (April 2025 - February 2026), several App Model API features lack documentation.

Missing Documentation

1. CORS Configuration (10+ questions)

Current State: Zero documentation

Customer Quotes:

"Wait.. hold on, hold on, hold on, hold on, hold on.... What? do we need to configure cors?"

"I seem to be having some CORS issues with a test deployment. Would this also have to be something I configure somewhere in my project?"

Requested Documentation:

  • When CORS configuration is needed with Aspire
  • How to configure CORS for dev vs prod
  • Common CORS issues and solutions

2. Console Application Integration (17 questions)

Customer Quotes:

"if I want to hook up a Console project with Aspire, so that it can still (maybe?) use service discovery, service defaults, etc. with Aspire resources... is that possible?"

"Colleague asked how to start a console app with aspire. I got it to connect to another resource (redis) and write a kv.... but then was wondering how to 'launch the console window' so one could interact with Console.Readline."

Requested Documentation:

  • Adding Console apps to Aspire AppHost
  • Service discovery in Console apps (non-ASP.NET Core)
  • Background worker / hosted service patterns
  • Interactive console apps with stdin/stdout

3. Resource Naming Conventions

Customer Quote:

"How does WithReference treat names that have dashes? e.g. AddWhatever("my-service") and then will it be like MY_SERVICE_[PROPERTY]? Or MY-SERVICE_[PROPERTY]?"

Requested Documentation:

  • How resource names map to environment variables
  • Dashes → underscores transformation rules
  • Best practices for naming resources

4. Network Binding (0.0.0.0 / LAN Access)

From #help thread: "How to bind services to 0.0.0.0 for LAN access?"

Requested Documentation:

  • Exposing services to external network
  • Binding to 0.0.0.0 vs localhost
  • LAN development scenarios

5. Container-to-Host Networking

Customer Quote:

"I'm struggling to get endpoints resolved in the context of a container. If I use KnownNetworkIdentifiers.LocalhostNetwork, it always comes back with localhost not host.docker.internal"

From #help: "Containers can't reach localhost SQL"

Requested Documentation:

  • host.docker.internal behavior
  • KnownNetworkIdentifiers enum usage
  • Container-to-localhost SQL Server connectivity

Data Source

  • Discord channels: #💫│general, #🔵│azure, #🔨│building-resources
  • Help threads: 147 analyzed from #🆘│help
  • Total messages: 20,415
  • Date range: April 2025 - February 2026</issue_description>

<agent_instructions>Please address this issue, while using the .github/skills/doc-writer/SKILL.md. Be certain to also take into account, related issues, pull requests, and comments that are directly linked as well as comments.</agent_instructions>

Comments on the Issue (you are Copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Add missing documentation for App Model API features docs: Add App Model API documentation for CORS, console apps, resource naming, and networking Feb 20, 2026

@IEvangelist David Pine (IEvangelist) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR looks good so far, but let's double check it for accuracy by using the .github/skills/doc-tester/SKILL.md skill. Please also consider all new comments and feedback. Copilot

Copilot AI commented Feb 20, 2026 •

Copy link
Copy Markdown
Contributor Author

This PR looks good so far, but let's double check it for accuracy by using the .github/skills/doc-tester/SKILL.md skill. Please also consider all new comments and feedback. Copilot

Ran the doc-tester validation on all new and updated pages. Here's what was verified:

All internal links return HTTP 200 — /diagnostics/aspire006/, /fundamentals/service-discovery/, /fundamentals/networking-overview/, /fundamentals/external-parameters/, /app-host/console-apps/, /app-host/cors-configuration/, /dashboard/configuration/, /dashboard/enable-browser-telemetry/, /fundamentals/service-defaults/, /app-host/executable-resources/.

Content accuracy checks:

  • KnownNetworkIdentifiers.LocalhostNetwork / .DefaultAspireContainerNetwork API signature verified against the what's-new/aspire-13.mdx reference
  • AddConnectionString usage verified against existing docs (external-parameters.mdx)
  • WaitFor, WithExplicitStart, AddRedisClient all verified as established APIs in existing docs
  • WithEnvironment(..., GetEndpoint(...)) pattern verified against resource-hierarchies.mdx

One structural fix made (commit e1a909e): An AddExecutable example was misplaced under the "For container resources" section in networking-overview.mdx — moved it to "For executable resources" where it belongs.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/CommunityToolkit/Aspire
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node ./scripts/update-github-stats.js (http block)
  • https://api.github.com/repos/dotnet/aspire
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node ./scripts/update-github-stats.js (http block)
  • https://api.github.com/repos/dotnet/aspire-samples
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node ./scripts/update-github-stats.js (http block)
  • https://api.github.com/repos/microsoft/aspire.dev
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node ./scripts/update-github-stats.js (http block)
  • https://api.github.com/repos/microsoft/dcp
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node ./scripts/update-github-stats.js (http block)
  • telemetry.astro.build
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/.npm/_npx/aa98e6899c6baff3/node_modules/.bin/astro dev --port 4321 | cut -d&#34; &#34; -f2 (dns block)
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/aspire.dev/aspire.dev/src/frontend/node_modules/.bin/../astro/astro.js dev --port 4321 (dns block)
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/aspire.dev/aspire.dev/src/frontend/node_modules/.bin/../astro/astro.js build .0/bin/pnpm (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

@IEvangelist David Pine (IEvangelist) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR looks good so far, but let's double check it for accuracy by using the .github/skills/doc-tester/SKILL.md skill. Please also consider all new comments and feedback/suggestions. Copilot

Copilot AI commented Feb 23, 2026

Copy link
Copy Markdown
Contributor Author

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/CommunityToolkit/Aspire
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node ./scripts/update-github-stats.js (http block)
  • https://api.github.com/repos/dotnet/aspire
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node ./scripts/update-github-stats.js (http block)
  • https://api.github.com/repos/dotnet/aspire-samples
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node ./scripts/update-github-stats.js (http block)
  • https://api.github.com/repos/microsoft/aspire.dev
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node ./scripts/update-github-stats.js (http block)
  • https://api.github.com/repos/microsoft/dcp
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node ./scripts/update-github-stats.js (http block)
  • telemetry.astro.build
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/aspire.dev/aspire.dev/src/frontend/node_modules/.bin/../astro/astro.js build (dns block)
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/aspire.dev/aspire.dev/src/frontend/node_modules/.bin/../astro/astro.js dev --port 4321 (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds new AppHost documentation pages to close gaps around CORS, console/worker apps, and resource naming, and extends the networking fundamentals page with LAN binding and container-to-host guidance.

Changes:

  • Added new AppHost docs: CORS configuration, console/worker apps, and resource naming conventions.
  • Expanded networking-overview.mdx with LAN binding and container-to-host networking sections.
  • Updated the docs sidebar and refreshed the integrations catalog metadata.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
src/frontend/src/data/aspire-integrations.json Updates integration package versions/icons/download counts; adds new CommunityToolkit entries.
src/frontend/src/content/docs/fundamentals/networking-overview.mdx Adds LAN binding guidance and container-to-host networking + KnownNetworkIdentifiers examples.
src/frontend/src/content/docs/app-host/resource-naming.mdx New page describing env var mapping, dash→underscore behavior, and naming guidance.
src/frontend/src/content/docs/app-host/cors-configuration.mdx New page explaining when/how to configure CORS (dev/prod patterns + common issues).
src/frontend/src/content/docs/app-host/console-apps.mdx New page documenting console/worker app orchestration, service discovery, and dashboard logs.
src/frontend/config/sidebar/docs.topics.ts Adds new AppHost pages to the sidebar.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@IEvangelist David Pine (IEvangelist) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR looks good so far, but let's double check it for accuracy by using the .github/skills/doc-tester/SKILL.md skill. Please also consider all new comments and feedback/suggestions. Copilot

Copilot AI commented Feb 23, 2026

Copy link
Copy Markdown
Contributor Author

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • telemetry.astro.build
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/aspire.dev/aspire.dev/src/frontend/node_modules/.bin/../astro/astro.js dev --port 4321 (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Frontend HTML artifact ready

The latest frontend build uploaded the frontend-dist artifact for PR #454. Use the VS Code button below to open this PR with GitHub Artifacts Explorer and browse the built HTML locally.

VS Code: Open PR #454 artifacts

This comment updates automatically when a new frontend build artifact is uploaded.

@mitchdenny

Copy link
Copy Markdown
Member

Still planning to merge?

@aspire-repo-bot aspire-repo-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated wording suggestions from the forbidden-words check. Apply the suggestions to resolve them.

@IEvangelist David Pine (IEvangelist) added the ci:skip-forbidden-words Allows maintainers to bypass false positives in the forbidden-word check. label Aug 7, 2026
@IEvangelist David Pine (IEvangelist) removed the ci:skip-forbidden-words Allows maintainers to bypass false positives in the forbidden-word check. label Aug 7, 2026
@IEvangelist
David Pine (IEvangelist) force-pushed the copilot/add-docs-for-app-model-api branch from ffdbece to 16278f4 Compare August 7, 2026 20:13
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 0d21fabc-759d-45d9-b1fb-41733ff02aa0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Documentation accuracy review

Reviewed PR head 71eefe884aa5561afd8c17df9563cef9e300c613.

Phase A: 61 grouped claims: 45 verified, 9 verified with nuance, 3 contradicted, 0 unverifiable, and 4 non-blocking narrative/recommendation entries. Repeated API invocations are grouped; illustrative app-specific project/client names are not claimed to be Aspire-provided types.

Phase B: Independent, source-blind doc-tester run covering four pages (three new AppHost articles and only the added networking sections), plus sidebar navigation: 1 critical issue and 5 warning groups. All 22 AppHost language examples compiled with prerequisite scaffolding; the console service-discovery walkthrough failed literal compilation, and the worker program lacked its Redis client dependency. Docker-dependent runtime checks were blocked by the unavailable daemon. The complete report and remaining limitations are reproduced below. No full-site build was run; the reviewer skill calls for a local development preview.

Phase A - Claim verification

Three source-backed corrections are called out inline:

  1. Remove or version-scope the obsolete terminal CLI feature gate.
  2. Distinguish CORS middleware execution order from minimal-API endpoint registration order.
  3. Scope ASPIRE006 build diagnostics to C# literal names; explain runtime validation for dynamic/TypeScript names.
Verified claims and nuances (54 entries with source evidence)

Paths below are relative to the stated source repository and pinned SHA.

ID PR location Verdict Claim / nuance Source evidence
C01 app-host/console-apps.mdx:9-13 verified Console/worker resources can be orchestrated without endpoints and receive dependencies and console capture. microsoft/aspire src/Aspire.Hosting/ProjectResourceBuilderExtensions.cs:264-323,847-850; src/Aspire.Hosting/Dcp/ExecutableCreator.cs:325-353; src/Aspire.Hosting/Dcp/DcpResourceWatcher.cs:546-550
C02 app-host/console-apps.mdx:13-23 verified Executable, Python, JavaScript, and project APIs support the stated execution types. microsoft/aspire src/Aspire.Hosting/ExecutableResourceBuilderExtensions.cs:33-54; src/Aspire.Hosting.Python/PythonAppResourceBuilderExtensions.cs:68,106,147; src/Aspire.Hosting.JavaScript/JavaScriptHostingExtensions.cs:148,1169; src/Aspire.Hosting/ProjectResourceBuilderExtensions.cs:68,102,115-130
C03 app-host/console-apps.mdx:28-60 verified Both AppHost samples can create Redis and a project, reference Redis, and build/run with synchronous C# or awaited fluent TypeScript APIs. microsoft/aspire src/Aspire.Hosting.Redis/RedisBuilderExtensions.cs:65-95; src/Aspire.Hosting/ProjectResourceBuilderExtensions.cs:68,115-130; src/Aspire.Hosting/ResourceBuilderExtensions.cs:1114-1173; src/Aspire.Hosting.CodeGeneration.TypeScript/AtsTypeScriptCodeGenerator.cs:868-907,1628-1665,1974-2000; src/Aspire.Hosting/DistributedApplication.cs:166,272-281,532-533; src/Aspire.Hosting/DistributedApplicationBuilder.cs:877
C04 app-host/console-apps.mdx:62-70 verified Redis project references inject the connection string into ConnectionStrings__cache; .NET 8+ and a service-defaults reference are compatible with the shared defaults template. microsoft/aspire src/Aspire.Hosting/ApplicationModel/ConnectionStringEnvironmentVariableNames.cs:14,68-83; src/Aspire.Hosting/ResourceBuilderExtensions.cs:1141-1148; src/Aspire.ProjectTemplates/templates/aspire-servicedefaults/Aspire.ServiceDefaults1.csproj:4-17
C05 app-host/console-apps.mdx:79-82,88-98 verified Microsoft.Extensions.Hosting provides Generic Host APIs used by console applications. dotnet/runtime src/libraries/Microsoft.Extensions.Hosting/src/Host.cs:75-100
C06 app-host/console-apps.mdx:91-95 verified Service defaults applies telemetry, health checks, HTTP resilience, and service discovery to IHostApplicationBuilder implementations. microsoft/aspire src/Aspire.ProjectTemplates/templates/aspire-servicedefaults/Extensions.cs:21-44,46-92,101-108
C07 app-host/console-apps.mdx:94-95,106-145 verified A typed HTTP client receives configured service discovery; catalog references inject endpoints and WaitFor adds dependency readiness ordering. microsoft/aspire src/Aspire.ProjectTemplates/templates/aspire-servicedefaults/Extensions.cs:27-35; src/Aspire.Hosting/ResourceBuilderExtensions.cs:807-865,2485-2581; typed AddHttpClient API also read in dotnet/runtime src/libraries/Microsoft.Extensions.Http/src/DependencyInjection/HttpClientFactoryServiceCollectionExtensions.cs
C08 app-host/console-apps.mdx:151-198 verified BackgroundService implements IHostedService and ExecuteAsync represents a long-running background task controlled by cancellation. dotnet/runtime src/libraries/Microsoft.Extensions.Hosting.Abstractions/src/BackgroundService.cs:11-51
C09 app-host/console-apps.mdx:189-198 verified AddRedisClient reads the named Redis connection from an IHostApplicationBuilder and the Generic Host can register a hosted worker. microsoft/aspire src/Components/Aspire.StackExchange.Redis/AspireRedisExtensions.cs:25-55,93-118; Generic Host contract in dotnet/runtime Host.cs:75-100 and BackgroundService.cs:11-51
C10 app-host/console-apps.mdx:206-247 verified C# and TypeScript worker AppHosts can add PostgreSQL/database/Redis, reference them, and wait for the database. microsoft/aspire src/Aspire.Hosting.PostgreSQL/PostgresBuilderExtensions.cs:50-51,193-204; src/Aspire.Hosting.Redis/RedisBuilderExtensions.cs:65-95; src/Aspire.Hosting/ResourceBuilderExtensions.cs:1114-1173,2485-2581
C11 app-host/console-apps.mdx:257-288 verified WithExplicitStart prevents automatic startup while retaining the resource in the model/dashboard. microsoft/aspire src/Aspire.Hosting/ResourceBuilderExtensions.cs:2718-2745; src/Aspire.Hosting/Dcp/ExecutableCreator.cs:349-355; src/Aspire.Hosting/Dcp/ContainerCreator.cs:137
C12 app-host/console-apps.mdx:288 verified Resource commands can start explicitly stopped resources. microsoft/aspire src/Aspire.Hosting/ApplicationModel/ResourceCommandService.cs:19-27,42-69,113-129
C13 app-host/console-apps.mdx:291-297 verified Console logs is an output viewer; bidirectional input uses a separately configured terminal session. microsoft/aspire src/Aspire.Dashboard/Components/Pages/ConsoleLogs.razor:1-129; src/Aspire.Dashboard/Components/Controls/LogViewer.razor:28-101; src/Aspire.Hosting/TerminalResourceBuilderExtensions.cs:25-42
C14 app-host/console-apps.mdx:299-308 verified-with-nuance WithTerminal creates interactive PTY-backed sessions and remains experimental with ASPIRETERMINAL001. Nuance: The current main-branch API and diagnostic are verified; the exact historical 13.4.6 availability boundary is not established by this main-only source snapshot. microsoft/aspire src/Aspire.Hosting/TerminalResourceBuilderExtensions.cs:25-68,83-125; src/Aspire.Hosting/ApplicationModel/TerminalDiagnostics.cs:12-19
C16 app-host/console-apps.mdx:311-320 verified Console stdout/stderr are collected and ANSI colors are rendered as HTML in the dashboard. microsoft/aspire src/Aspire.Hosting/Dcp/DcpResourceWatcher.cs:546-550,600-654; src/Shared/ConsoleLogs/LogParser.cs:24-59; src/Shared/ConsoleLogs/AnsiParser.cs:71-83; src/Aspire.Dashboard/Components/Controls/LogViewer.razor:101
C17 app-host/console-apps.mdx:323-333 verified-with-nuance ILogger logs reach console output and the structured-log collector. Nuance: This depends on configured console logging and an OpenTelemetry logging provider/exporter, as in the earlier service-defaults setup; ILogger alone does not export structured logs. microsoft/aspire src/Aspire.ProjectTemplates/templates/aspire-servicedefaults/Extensions.cs:49-53,81-88; src/Aspire.Hosting/Dcp/DcpResourceWatcher.cs:546-550,600-654
C18 app-host/console-apps.mdx:335-356 verified Environment configuration normalizes double underscores to colons; GetConnectionString reads ConnectionStrings:. dotnet/runtime src/libraries/Microsoft.Extensions.Configuration.EnvironmentVariables/src/EnvironmentVariablesConfigurationProvider.cs:142,174-177; src/libraries/Microsoft.Extensions.Configuration.Abstractions/src/ConfigurationExtensions.cs:36-41
R02 app-host/cors-configuration.mdx:23-27 verified-with-nuance Server-originated backend requests do not require browser CORS. Nuance: This is true for requests actually made on the server. A server-rendered frontend can also issue browser-side cross-origin requests, which still need CORS; rendering mode alone is not sufficient. microsoft/aspire src/Aspire.Dashboard/DashboardWebApplication.cs:280-305,541-545,615-624
R03 app-host/cors-configuration.mdx:29-33 verified Aspire local networking supplies transport endpoints rather than bypassing the browser's origin policy. microsoft/aspire src/Aspire.Hosting/Dcp/DcpExecutor.cs:632-731; src/Aspire.Hosting/ResourceBuilderExtensions.cs:807-865
R04 app-host/cors-configuration.mdx:39-60,73-97 verified AddCors policies support WithOrigins, AllowAnyHeader, AllowAnyMethod, and UseCors in a WebApplication; service defaults adds its default endpoints. dotnet/aspnetcore src/Middleware/CORS/src/Infrastructure/CorsPolicyBuilder.cs:54-65,171-186; src/Middleware/CORS/src/Infrastructure/CorsMiddleware.cs:89-198; Aspire ServiceDefaults Extensions.cs:111-133
R06 app-host/cors-configuration.mdx:69-124,173-210 verified The API's Cors:AllowedOrigins array is application-defined configuration; an empty array supplies no allowed origins, and explicit development/production settings can be bound to policy. dotnet/aspnetcore src/Middleware/CORS/src/Infrastructure/CorsPolicyBuilder.cs:54-65; src/Middleware/CORS/src/Infrastructure/CorsService.cs:222-238; configuration infrastructure in dotnet/runtime EnvironmentVariablesConfigurationProvider.cs:142,174
R07 app-host/cors-configuration.mdx:126-164 verified C#/TypeScript JavaScript resources support a dev script, an HTTP PORT endpoint, project references, and external HTTP endpoint annotations. microsoft/aspire src/Aspire.Hosting.JavaScript/JavaScriptHostingExtensions.cs:1161-1179; src/Aspire.Hosting/ResourceBuilderExtensions.cs:1840-1861,1910-1937,807-865; src/Aspire.Hosting.CodeGeneration.TypeScript/AtsTypeScriptCodeGenerator.cs:725-746,1089-1100
R08 app-host/cors-configuration.mdx:141,159,182 verified Referencing the frontend injects services__frontend__http__0, which .NET configuration exposes using colon separators. microsoft/aspire src/Aspire.Hosting/ResourceBuilderExtensions.cs:807-865; dotnet/runtime EnvironmentVariablesConfigurationProvider.cs:174-177
R09 app-host/cors-configuration.mdx:126,180-215 verified Service references are network-context-specific, so deployment CORS must use browser-visible public origins rather than assume the injected address is public. microsoft/aspire src/Aspire.Hosting/ResourceBuilderExtensions.cs:819,836; src/Aspire.Hosting/Dcp/ContainerNetworkEndpointProvisioner.cs:485-501
R11 app-host/cors-configuration.mdx:233-241 verified Explicit CORS middleware placed before authentication/authorization can service preflights before authentication rejects them. dotnet/aspnetcore src/Middleware/CORS/src/Infrastructure/CorsMiddleware.cs:168-190; src/DefaultBuilder/src/WebApplicationBuilder.cs:459-545
R12 app-host/cors-configuration.mdx:243-248 verified CORS middleware responds to a recognized OPTIONS preflight with policy response headers and status 204. dotnet/aspnetcore src/Middleware/CORS/src/Infrastructure/CorsMiddleware.cs:176-184; src/Middleware/CORS/src/Infrastructure/CorsService.cs:69-82,152-205
R13 app-host/cors-configuration.mdx:250-272 verified-with-nuance AllowCredentials enables credentialed CORS responses; AllowAnyOrigin plus credentials is invalid. Nuance: Cookies/automatic authentication require the client's credential mode and server permission. An explicitly supplied bearer Authorization header instead needs header/preflight permission and does not inherently require AllowCredentials. The promised client-side example is missing. dotnet/aspnetcore src/Middleware/CORS/src/Infrastructure/CorsPolicyBuilder.cs:140-163,228-235; src/Middleware/CORS/src/Infrastructure/CorsService.cs:119-125,165-180
R14 app-host/cors-configuration.mdx:274-280 verified Allowed origins are matched by origin, so the production scheme and host must match. dotnet/aspnetcore src/Middleware/CORS/src/Infrastructure/CorsPolicyBuilder.cs:40-85; src/Middleware/CORS/src/Infrastructure/CorsService.cs:222-238
R15 app-host/cors-configuration.mdx:282-290 verified The AppHost dashboard accepts comma-separated browser telemetry origins through ASPIRE_DASHBOARD_CORS_ALLOWED_ORIGINS. microsoft/aspire src/Shared/KnownConfigNames.cs:16; src/Aspire.Hosting/Dashboard/DashboardEventHandlers.cs:472-490; src/Aspire.Dashboard/DashboardWebApplication.cs:280-305
R16 app-host/cors-configuration.mdx:292-296 verified A wildcard origin permits any origin for dashboard OTLP HTTP CORS. microsoft/aspire src/Aspire.Dashboard/DashboardWebApplication.cs:280-305; dotnet/aspnetcore CorsPolicyBuilder.cs:54-65,160-164 and CorsService.cs:100-103,232
R17 app-host/cors-configuration.mdx:298-302 verified Standalone dashboard uses the Dashboard:Otlp:Cors:AllowedOrigins configuration/env key. microsoft/aspire src/Shared/DashboardConfigNames.cs:35; src/Aspire.Dashboard/Configuration/DashboardOptions.cs:133,230-236
N01 app-host/resource-naming.mdx:11-19,25-66,90-137 verified-with-nuance Logical connection-string names and discovery keys retain resource names with dashes. Nuance: Current main also emits a portable connection-string alias, e.g. ConnectionStrings__app_db, in addition to ConnectionStrings__app-db. The original remains valid, but a page about encoded names should mention this additional form. microsoft/aspire src/Aspire.Hosting/ApplicationModel/ConnectionStringEnvironmentVariableNames.cs:68-83; src/Aspire.Hosting/ResourceBuilderExtensions.cs:857-865,1087-1092,1141-1148
N02 app-host/resource-naming.mdx:34-60,96-134,192-231 verified Resource-naming AppHost samples use exported Redis, Postgres/database, RabbitMQ, project and reference APIs in both languages. microsoft/aspire src/Aspire.Hosting.Redis/RedisBuilderExtensions.cs:65-95; src/Aspire.Hosting.PostgreSQL/PostgresBuilderExtensions.cs:50-51,193-204; src/Aspire.Hosting.RabbitMQ/RabbitMQBuilderExtensions.cs:30-31; src/Aspire.Hosting/ProjectResourceBuilderExtensions.cs:68,115-130; src/Aspire.Hosting/ResourceBuilderExtensions.cs:807-865,1114-1173
N03 app-host/resource-naming.mdx:68-86 verified-with-nuance Discovery references use an indexed resource/endpoint key with indices starting at zero. Nuance: For endpoints named http/https, the key follows the endpoint's current scheme; other named endpoints use their endpoint name. Indices are per scheme/name, not one global sequence. microsoft/aspire src/Aspire.Hosting/ResourceBuilderExtensions.cs:845-865
N04 app-host/resource-naming.mdx:90-148 verified Uppercase endpoint references encode dashes as underscores and are injected alongside discovery variables by default. microsoft/aspire src/Shared/EnvironmentVariableNameEncoder.cs:21-42; src/Aspire.Hosting/ResourceBuilderExtensions.cs:813-865
N05 app-host/resource-naming.mdx:143-147 verified Connection-property variables use an encoded uppercase resource prefix, including inherited PostgreSQL host properties. microsoft/aspire src/Aspire.Hosting/ResourceBuilderExtensions.cs:1153-1172,1212-1219; src/Aspire.Hosting.PostgreSQL/PostgresDatabaseResource.cs:71-77; src/Aspire.Hosting.PostgreSQL/PostgresServerResource.cs:169-184
N06 app-host/resource-naming.mdx:149-164 verified Configuration preserves dashes while converting double-underscore section delimiters to colons; Aspire client APIs accept the original logical name. microsoft/aspire src/Components/Aspire.Npgsql/AspirePostgreSqlNpgsqlExtensions.cs:32-33,66-69; src/Components/Aspire.StackExchange.Redis/AspireRedisExtensions.cs:110-118; dotnet/runtime ConfigurationExtensions.cs:36-41 and EnvironmentVariablesConfigurationProvider.cs:174-177
N07 app-host/resource-naming.mdx:166-177 verified Python/JavaScript applications can read the original injected environment name directly, including a dash. microsoft/aspire src/Aspire.Hosting/ResourceBuilderExtensions.cs:1141-1148; src/Aspire.Hosting/ApplicationModel/ConnectionStringEnvironmentVariableNames.cs:68-83
N08 app-host/resource-naming.mdx:183-186,248-250 verified Uppercase ASCII letters are valid resource-name characters and underscores are not valid under the default naming policy. microsoft/aspire src/Aspire.Hosting/ApplicationModel/ModelName.cs:11-16,89-103,127-143
N10 app-host/resource-naming.mdx:235-240 verified Underscores, consecutive/trailing dashes, and an initial digit fail default resource-name validation. microsoft/aspire src/Aspire.Hosting/ApplicationModel/ModelName.cs:89-123
N11 app-host/resource-naming.mdx:242-246 verified Default valid resource names are 1-64 ASCII letters/digits/dashes, start with a letter, and have no consecutive/trailing dash. microsoft/aspire src/Aspire.Hosting/ApplicationModel/ModelName.cs:11-16,74-125; src/Aspire.Hosting/DistributedApplicationBuilder.cs:985-992
N12 app-host/resource-naming.mdx:242-252 verified Resource names are checked while constructing the application model. microsoft/aspire src/Aspire.Hosting/DistributedApplicationBuilder.cs:907-923,985-992; src/Aspire.Hosting/ApplicationModel/ModelName.cs:20-37
P01 fundamentals/networking-overview.mdx:511-514 verified Endpoint target host and DCP advertised service address default to localhost. microsoft/aspire src/Aspire.Hosting/ApplicationModel/EndpointAnnotation.cs:240-242; src/Aspire.Hosting/Dcp/DcpExecutor.cs:693-705
P03 fundamentals/networking-overview.mdx:524-536 verified The project LAN sample supports proxyless matching public/target ports and an EndpointAnnotation TargetHost override. microsoft/aspire src/Aspire.Hosting/ResourceBuilderExtensions.cs:1525-1553,1617-1681,1840-1861; src/Aspire.Hosting/ApplicationModel/EndpointAnnotation.cs:240-242; src/Aspire.Hosting/Dcp/DcpExecutor.cs:693-705
P04 fundamentals/networking-overview.mdx:524,532-559 verified-with-nuance Project endpoints can generate listener bindings using TargetHost and TargetPort. Nuance: The standard ASPNETCORE_URLS path follows TargetHost. If the project defines Kestrel:Endpoints, run-mode overrides retain its original configured Kestrel host, so changing only TargetHost is not a universal listener override. microsoft/aspire src/Aspire.Hosting/ProjectResourceBuilderExtensions.cs:1124-1166,1215-1240
P05 fundamentals/networking-overview.mdx:543-559 verified TypeScript exposes withHttpEndpointCallback and mutable targetHost.get/set on the callback context. microsoft/aspire src/Aspire.Hosting/ResourceBuilderExtensions.cs:1570-1602; src/Aspire.Hosting/ApplicationModel/EndpointUpdateContext.cs:11,57-65; src/Aspire.Hosting.CodeGeneration.TypeScript/AtsTypeScriptCodeGenerator.cs:2183-2288
P06 fundamentals/networking-overview.mdx:564-601 verified Container resources can map a proxyless public host port to a fixed container port and receive an explicit environment variable. microsoft/aspire src/Aspire.Hosting/ContainerResourceBuilderExtensions.cs:117-139,163-183; src/Aspire.Hosting/ResourceBuilderExtensions.cs:229,1840-1861; src/Aspire.Hosting/Dcp/ContainerCreator.cs:703-738
P07 fundamentals/networking-overview.mdx:574,597 verified-with-nuance The container app is instructed to bind to http://0.0.0.0:80 through ASP.NET Core URL configuration. Nuance: This setting controls ASP.NET Core apps only. The placeholder container image must contain an app that reads ASPNETCORE_URLS; other runtimes need their own listener configuration. microsoft/aspire src/Aspire.Hosting/ProjectResourceBuilderExtensions.cs:1127-1164; src/Aspire.Hosting/ResourceBuilderExtensions.cs:229; src/Aspire.Hosting/Dcp/ContainerCreator.cs:703-738
P08 fundamentals/networking-overview.mdx:605-636 verified Executable resources accept an executable, working directory and argument list in both languages and support a proxyless HTTP endpoint. microsoft/aspire src/Aspire.Hosting/ExecutableResourceBuilderExtensions.cs:33-54; src/Aspire.Hosting/ResourceBuilderExtensions.cs:1840-1861; src/Aspire.Hosting.CodeGeneration.TypeScript/AtsTypeScriptCodeGenerator.cs:1089-1100
P09 fundamentals/networking-overview.mdx:641 verified-with-nuance Container-to-host tunnel connectivity is enabled by default and used by endpoint references. Nuance: Current default and reference behavior are verified. Exact first-release provenance for 13.3 is not established by the pinned main snapshot; with the tunnel enabled, this host-reference path only supports TCP. microsoft/aspire src/Aspire.Hosting/Dcp/DcpOptions.cs:144,355; src/Aspire.Hosting/Dcp/ContainerNetworkEndpointProvisioner.cs:99-102,170-213,485-501
P10 fundamentals/networking-overview.mdx:641-643 verified When the tunnel is disabled, the container runtime host name or Docker Desktop bridge is the fallback host address. microsoft/aspire src/Aspire.Hosting/Dcp/ContainerNetworkEndpointProvisioner.cs:485-501
S01 config/sidebar/docs.topics.ts:868-876 verified The new sidebar entry points to the PR's CORS page. microsoft/aspire.dev src/frontend/src/content/docs/app-host/cors-configuration.mdx:1-313
S02 config/sidebar/docs.topics.ts:947-955 verified The new sidebar entry points to the PR's console/worker page. microsoft/aspire.dev src/frontend/src/content/docs/app-host/console-apps.mdx:1-364
S03 config/sidebar/docs.topics.ts:958-965 verified The new sidebar entry points to the PR's resource-naming page; linked integration/diagnostic topics identify the APIs evidenced elsewhere in this catalog. microsoft/aspire.dev src/frontend/src/content/docs/app-host/resource-naming.mdx:1-258

Phase B - Doc-tester results (verbatim)

Documentation Test Report

Focus Area: Independent, source-blind Phase B for #454
Date: 2026-10-05
Tester: doc-tester agent
Status: Frozen; testing and cleanup complete
PR HEAD: 71eefe884aa5561afd8c17df9563cef9e300c613
Branch/base: copilot/add-docs-for-app-model-api / main; no branch switch
Local documentation URL: http://127.0.0.1:4354/
Worktree: Z:\source\copilot-worktrees\aspire.dev\copilot-add-docs-for-app-model-api

Exact scope and method

  • /app-host/console-apps/: all new article sections, C# and TypeScript AppHost pivots.
  • /app-host/cors-configuration/: all new article sections, C# and TypeScript AppHost pivots, Development and Production configuration pivots.
  • /app-host/resource-naming/: all new article sections, C# and TypeScript AppHost pivots.
  • /fundamentals/networking-overview/: only “Binding to all interfaces for LAN access,” its three resource-type subsections, and “Container-to-host networking.” Existing networking examples were not tested.
  • The three new sidebar destinations were checked; CORS and resource naming were reached by clicking their sidebar links.

Both required skills were loaded before browser work: doc-tester, then playwright-cli. All browser interactions used only playwright-cli -s=pr454-fulltest, with a separate, headless, in-memory msedge session. No interactive browser profile was touched.

Evidence came from locally rendered documentation, copied examples, compiler results, CLI resource descriptions, HTTP responses, and browser requests. No microsoft/aspire source, API source, generated signature files, CommunityToolkit source, Azure source, or Phase A findings were read. The TypeScript compiler consumed CLI-generated modules normally; their declarations were not inspected.

Summary

Category Passed Failed Warnings
Content Accuracy 6 1 3
Code Examples 31 3 3
CLI Commands 1 0 1
Links 75 0 0

Counts describe observed check groups, not complete source-accuracy certification. Code passes comprise 22 AppHost compilations, three complete CORS API programs, one credentials-policy fragment, the worker class, the no-host configuration example, and three dashed-name client lookups. The three failed code checks are the console project-reference fragment, its service-discovery Program.cs, and the full worker Program.cs without an identified client dependency. Runtime limitations remain explicit below even when a snippet compiled. Warning counts are category-level groups and can overlap.

Environment: Aspire CLI 13.6.0+e4d44bb1d8088cea538a74c53832b88cedbd7a5d; .NET SDK 10.0.401; Aspire template/hosting integrations 13.6.0; Python 3.12.10; installed uvicorn module 0.35.0. The separate uvicorn command was not on PATH. Docker CLI was present, but its daemon was unavailable.

Critical Issues

Issue 1: The console service-discovery walkthrough cannot be built literally

Location: /app-host/console-apps/, “Service discovery in console apps”
Type: Example / missing prerequisites
Severity: Critical for completing the displayed walkthrough

What the documentation says:

“Add the hosting package and reference the service defaults project:”

<PackageReference Include="Microsoft.Extensions.Hosting" />
<ProjectReference Include="..\MyApp.ServiceDefaults\MyApp.ServiceDefaults.csproj" />

“Configure the host in your console app’s Program.cs:”

using Microsoft.Extensions.Hosting;

var builder = Host.CreateApplicationBuilder(args);
builder.AddServiceDefaults();
builder.Services.AddHttpClient<CatalogClient>(
    client => client.BaseAddress = new Uri("https+http://catalog"));

var app = builder.Build();
await app.RunAsync();

What actually happens:

  1. The displayed package/reference fragment was inserted into a normal .NET console project, with the named service-defaults reference supplied as fixture scaffolding. It failed restore/build:
error NU1015: The following PackageReference item(s) do not have a version specified:
Microsoft.Extensions.Hosting
  1. To isolate the separate Program.cs problem, the unchanged program was tested in another console fixture that already had the generated service-defaults/framework dependencies, without the failing package-reference fragment. It still failed:
error CS0246: The type or namespace name 'CatalogClient' could not be found
error CS1061: 'IServiceCollection' does not contain a definition for 'AddHttpClient'

The page supplies neither a CatalogClient definition nor an instruction that it is a reader-provided placeholder. The displayed program imports only Microsoft.Extensions.Hosting. No missing client implementation or import was silently added to obtain a pass.

Evidence / reproduction commands:

dotnet build .doc-tester-workspace\pr454-fixtures\MyConsoleApp\MyConsoleApp.csproj --nologo -v quiet
# Failed: NU1015.

dotnet build .doc-tester-workspace\pr454-fixtures\ConsoleProgramOnly\ConsoleProgramOnly.csproj --nologo -v quiet
# Failed: CS0246 and CS1061.

Recommended Action:

  • Provide an explicit package version, or a package-install command, or explain the required central package-management setup.
  • Define the client and required imports, or clearly mark the client registration as a fragment requiring an existing typed client.
  • Verify the revised sequence in an ordinary console project, not just in a Worker Service or ASP.NET project with additional implicit imports.

Warnings

Warning 1: The endpoint-mapping ordering explanation is too absolute for the shown minimal API

Location: /app-host/cors-configuration/, development example and “Issue: CORS error despite configuring CORS middleware”
Issue: A directly tested claim did not hold for the demonstrated minimal API:

“UseCors() must be called before any endpoint mapping and before UseAuthorization() when authentication is used.”

The full displayed examples themselves call app.MapDefaultEndpoints() before app.UseCors().

A controlled variation of the first full API sample moved only app.UseCors() after app.MapGet("/", () => Results.Ok()). The same allowed-origin requests continued to work:

MapGet before UseCors: GET=200 ACAO=http://localhost:3000
MapGet before UseCors: OPTIONS=204 ACAO=http://localhost:3000

Commands used:

dotnet run --project .doc-tester-workspace\pr454-fixtures\Api\Api.csproj --no-launch-profile --urls http://localhost:5094
Invoke-WebRequest http://localhost:5094/ -Headers @{Origin='http://localhost:3000'}
Invoke-WebRequest http://localhost:5094/ -Method Options -Headers @{
  Origin='http://localhost:3000'
  'Access-Control-Request-Method'='GET'
  'Access-Control-Request-Headers'='x-pr454-probe'
}

Suggestion: Clarify the middleware-order requirement rather than treating every Map* registration as an ordering prerequisite. This experiment did not test authentication/authorization ordering and does not invalidate that separate advice.

Warning 2: The worker program lacks an identified Redis client prerequisite

Location: /app-host/console-apps/, “Creating a Worker Service”

What the documentation shows:

builder.AddServiceDefaults();
builder.AddRedisClient("cache");
builder.Services.AddHostedService<DataProcessor>();

Observed result: A fresh dotnet new worker project with the supplied DataProcessor.cs and generated service-defaults reference failed:

error CS1061: 'HostApplicationBuilder' does not contain a definition for 'AddRedisClient'
dotnet new worker -n DataWorker -o .doc-tester-workspace\pr454-fixtures\DataWorker --force --no-restore --no-update-check
dotnet add .doc-tester-workspace\pr454-fixtures\DataWorker\DataWorker.csproj reference .doc-tester-workspace\pr454-runtime\Pr454Runtime.ServiceDefaults\Pr454Runtime.ServiceDefaults.csproj
dotnet build .doc-tester-workspace\pr454-fixtures\DataWorker\DataWorker.csproj --nologo -v quiet
# Failed: CS1061.

The page later links Redis/PostgreSQL hosting integrations, but does not identify or install the client dependency for this program. Cross-linked integration articles were not followed beyond link-target validation because they are outside this review's content scope.

Suggestion: Identify the client package and installation step, or direct readers to the exact client setup section before presenting the program. This is a dependency blocker, not proof that the API is nonexistent with the correct package. The worker class alone compiled successfully in a Worker SDK fixture.

Warning 3: Some example prerequisites and fragments remain reader-supplied

Location: All three new articles, especially console logging and CORS credentials.

  • The CORS AppHost initially failed compilation with CS1061 for AddJavaScriptApp before Aspire.Hosting.JavaScript was installed. It then compiled and ran unchanged. The CORS page does not identify that hosting package.
  • AppHost snippets assume named projects such as MyConsoleApp, CatalogService, DataWorker, MyInteractiveTool, MyApi, CatalogApi, Worker, and Api, plus hosting integrations. Those projects were created as test scaffolding, not inferred to be supplied by the page.
  • The CORS page says “Enable credentials on both the server and the client” but supplies only the server policy. The exact policy compiled and returned credential headers, but it does not teach the client-side step.
  • The logging fragment uses existing logger and itemId; the authentication fragment assumes an authentication setup. These are contextual illustrations, not standalone runnable programs.

Suggestion: State prerequisites or label fragments explicitly; include a browser client credentials example where the prose asks for one.

Warning 4: Historical and experimental behavior was not verified on the cited version

Location: /app-host/console-apps/, “Explicit start and console interaction”

The page discusses Aspire 13.4.6 and subsequent development builds. The available CLI/templates were 13.6.0; no older or nightly installation was substituted. The CLI feature-setting command succeeded, but that does not verify the historical availability, diagnostic ID, terminal API, or bidirectional terminal behavior.

Suggestion: Keep the explicit version caveat, and validate it separately against the intended release/dev build. Source-blind results here cannot establish historical compatibility.

Warning 5: Compilation is not an integration or networking-runtime pass

Location: Container-dependent console/naming examples and the two added networking sections.

docker info --format '{{.ServerVersion}}'

Failed with:

failed to connect to the docker API at npipe:////./pipe/dockerDesktopLinuxEngine
... The system cannot find the file specified.

The container LAN example additionally uses the placeholder image myregistry/myapp.

uvicorn --version
# Failed: The term 'uvicorn' is not recognized ...

python -m uvicorn --version
# Passed: Running uvicorn 0.35.0 with CPython 3.12.10 on Windows.

The executable snippet specifically invokes the unavailable uvicorn command and assumes a main:app application that the section does not provide. These prerequisites were not silently repaired.

Suggestion: Explain/identify prerequisites where needed. Do not treat the successful AppHost compilations below as proof of Docker operation, container tunnel behavior, or executable startup.

Passed Checks

Site startup, navigation, rendering, and internal links

The worktree began clean and matched the supplied SHA. From the repository root:

$env:ASTRO_TELEMETRY_DISABLED='1'
npm exec --yes --package pnpm@11.9.0 -- pnpm --dir .\src\frontend exec astro telemetry disable
npm exec --yes --package pnpm@11.9.0 -- pnpm dev --host 127.0.0.1 --port 4354

Results: telemetry disabled; Astro 7.1.3 ready at http://127.0.0.1:4354/; readiness request returned HTTP 200. The server ran attached, not detached.

playwright-cli -s=pr454-fulltest open http://127.0.0.1:4354/app-host/console-apps/ --browser=msedge

Results:

Route HTTP C# / TypeScript pivots Scoped internal href checks
/app-host/console-apps/ 200 Both exercised 26 passed
/app-host/cors-configuration/ 200 Both exercised; Development/Production also exercised 19 passed
/app-host/resource-naming/ 200 Both exercised 18 passed
/fundamentals/networking-overview/ 200 Both exercised for added LAN examples only 12 passed

The 75 per-page href checks comprise 57 same-page anchors/tab targets and 18 internal page links, representing 15 unique page targets. All tested page targets returned HTTP 200; paths were site-relative with trailing slashes; tested anchors existed. Existing linked articles were checked for target existence/anchors, not read or behavior-tested. External Microsoft Learn links were not validated.

The three new sidebar routes were present and resolved. Before intentional CORS-denial experiments, browser console inspection reported no errors or warnings for the rendered documentation pages. The outdated playwright-cli skill/version notice was nonblocking and no tooling files were updated.

All 22 affected AppHost language examples compiled

Each browser-visible AppHost block was copied unchanged, apart from insignificant browser-rendered blank lines, into the corresponding fixture AppHost file. Fixture project references and installed packages supplied the baseline context; no API declaration files were read.

Article / section C# TypeScript
Console: Adding a console app to the AppHost Compiled Compiled
Console: Service discovery in console apps AppHost compiled; client blocked separately AppHost compiled; client blocked separately
Console: Adding to the AppHost Compiled Compiled
Console: Explicit start and console interaction Compiled; C# dashboard runtime checked Compiled
CORS: Using Aspire to inject the frontend URL locally Compiled after JavaScript package prerequisite; runtime checked Compiled; runtime checked
Naming: Connection string environment variables Compiled Compiled
Naming: When Aspire encodes resource names Compiled Compiled
Naming: Naming best practices Compiled Compiled
Networking: For ASP.NET Core projects Compiled; runtime checked Compiled; runtime checked
Networking: For container resources Compiled only Compiled only
Networking: For executable resources Compiled only Compiled only

Exact repeated build commands:

dotnet build .doc-tester-workspace\pr454-fixtures\AppHost\AppHost.csproj --nologo -v quiet
# Each of the 11 final C# cases passed.

Push-Location .doc-tester-workspace\pr454-fixtures\TsAppHost
npm run aspire:build
Pop-Location
# Each of the 11 TypeScript cases passed; script runs tsc -p tsconfig.apphost.json.

Setup commands, all successful:

aspire new aspire-empty --language csharp -n Pr454 -o .doc-tester-workspace\pr454-csharp --suppress-agent-init --non-interactive --nologo
aspire new aspire-starter --language csharp -n Pr454Runtime -o .doc-tester-workspace\pr454-runtime --suppress-agent-init --non-interactive --nologo
aspire new aspire-ts-empty -n Pr454Ts -o .doc-tester-workspace\pr454-ts --suppress-agent-init --non-interactive --nologo

The newly generated TypeScript fixture was moved to .doc-tester-workspace\pr454-fixtures\TsAppHost so the examples' literal sibling project paths existed.

aspire add Aspire.Hosting.Redis --apphost .doc-tester-workspace\pr454-fixtures\AppHost\AppHost.csproj --non-interactive --nologo
aspire add Aspire.Hosting.PostgreSQL --apphost .doc-tester-workspace\pr454-fixtures\AppHost\AppHost.csproj --non-interactive --nologo
aspire add Aspire.Hosting.RabbitMQ --apphost .doc-tester-workspace\pr454-fixtures\AppHost\AppHost.csproj --non-interactive --nologo
aspire add Aspire.Hosting.JavaScript --apphost .doc-tester-workspace\pr454-fixtures\AppHost\AppHost.csproj --non-interactive --nologo

The same four aspire add commands also succeeded with --apphost .doc-tester-workspace\pr454-fixtures\TsAppHost\apphost.mts.

aspire restore --apphost .doc-tester-workspace\pr454-fixtures\TsAppHost\apphost.mts --non-interactive --nologo
# Passed: SDK code restored successfully.

CORS APIs: literal full programs and browser enforcement

All three complete Program.cs examples built unchanged:

dotnet build .doc-tester-workspace\pr454-fixtures\Api\Api.csproj --nologo -v quiet
# Passed for development policy, environment-based policy, and injected-URL policy.

For direct runtime tests, the literal program and JSON configurations were used:

$env:DOTNET_ENVIRONMENT='Development'
dotnet run --project .doc-tester-workspace\pr454-fixtures\Api\Api.csproj --no-launch-profile --urls http://localhost:5094
  • From a minimal test frontend at http://localhost:3000, browser fetch returned 200, type: "cors".
  • A browser GET with X-Pr454-Probe exercised preflight and returned 200.
  • Direct OPTIONS returned 204, Access-Control-Allow-Origin: http://localhost:3000, allowed method GET, allowed header x-pr454-probe.
  • From the nonallowed docs origin http://127.0.0.1:4354, browser fetch failed with TypeError: Failed to fetch. Direct HTTP requests still returned 200, without the allow-origin header: the browser enforced the restriction.
  • credentials: 'include' failed for the baseline noncredential policy, as expected.
  • With the literal development JSON, origins http://localhost:3000 and https://localhost:7000 received matching allow-origin headers; https://myapp.com and http://localhost:3001 did not.

Production tests:

$env:DOTNET_ENVIRONMENT='Production'
dotnet run --project .doc-tester-workspace\pr454-fixtures\Api\Api.csproj --no-build --no-launch-profile --urls http://localhost:5094

The literal production JSON allowed https://myapp.com and https://www.myapp.com, and omitted the allow-origin header for http://localhost:3000. This was verified for both the environment-based program and the injected-URL program's production fallback.

For both literal AppHost language examples:

aspire run --apphost .doc-tester-workspace\pr454-fixtures\AppHost\AppHost.csproj --isolated --non-interactive --nologo
aspire run --apphost .doc-tester-workspace\pr454-fixtures\TsAppHost\apphost.mts --isolated --non-interactive --nologo

The supplied API program ran with a small harness JavaScript frontend implementing the shown dev script and PORT contract. This frontend was not claimed to be a documented client application.

  • C# case: API and frontend were Running; services__frontend__http__0=http://localhost:54774; API URL was http://localhost:54772; allow-origin matched the injected frontend origin; browser fetch succeeded 200.
  • TypeScript case: API and frontend were Running; services__frontend__http__0=http://localhost:3000; API URL was http://localhost:5579; allow-origin matched; browser fetch succeeded 200.
  • Isolated orchestration could change proxy-facing ports; these were discovered from CLI results, not hardcoded as expected outputs.

The exact AllowCredentials() policy fragment was placed into the page's complete API scaffold. It compiled and ran. Direct requests with Origin: https://myapp.com returned matching allow-origin plus Access-Control-Allow-Credentials: true; requests with Origin: http://localhost:3000 received neither header. An authenticated cookie exchange from the public HTTPS origin was not tested.

Console on-demand lifecycle and visible stdout

The literal C# WithExplicitStart() AppHost was run with the command above. aspire describe tool ... --format json reported:

{
  "state": "NotStarted",
  "type": "Project",
  "commands": {
    "start": { "displayName": "Start", "state": "Enabled" }
  }
}

The runtime dashboard displayed “Not started” and “Resource is not configured to start automatically.” Using its Start resource button succeeded. The Console logs button showed the tool as Finished and displayed its stdout:

tool "Start" succeeded
PR454 cache=; raw=

The tool fixture used the page's no-host configuration example plus an observation-only Console.WriteLine. It had no cache reference in this specific model, so empty values were expected. This verifies on-demand start and visible stdout, not Redis connectivity or structured-log export.

The worker's unchanged DataProcessor.cs also compiled independently:

dotnet build .doc-tester-workspace\pr454-fixtures\WorkerClass\WorkerClass.csproj --nologo -v quiet -p:OutputType=Library
# Passed.

Resource names and client configuration access

The displayed no-host configuration example, with an output-only observation line, returned:

$env:ConnectionStrings__cache='pr454-cache-value'
dotnet run --project .doc-tester-workspace\pr454-fixtures\MyInteractiveTool\MyInteractiveTool.csproj --no-launch-profile --nologo
PR454 cache=pr454-cache-value; raw=pr454-cache-value

For the literal dashed-name client snippets, the harness deliberately supplied ConnectionStrings__app-db=pr454-dashed-value:

[Environment]::SetEnvironmentVariable('ConnectionStrings__app-db','pr454-dashed-value','Process')
dotnet run --project .doc-tester-workspace\pr454-fixtures\ConfigApi\ConfigApi.csproj --no-launch-profile --nologo
python .doc-tester-workspace\pr454-fixtures\naming.py
node .doc-tester-workspace\pr454-fixtures\naming.mjs

All three printed pr454-dashed-value. The .NET fragment was placed after a normal web application builder; Python and JavaScript received observation-only print lines. This validates the literal lookups and .NET separator mapping, not Aspire's unobserved database injection.

Controlled name variations in the shown container AppHost were built using the same targeted C# build command:

Name / length Observed result
my_service ASPIRE006: only ASCII letters, digits, hyphens
web--api ASPIRE006: cannot contain consecutive hyphens
api- ASPIRE006: cannot end with a hyphen
1api ASPIRE006: must start with an ASCII letter
A, length 1 Compiled
MyApp Compiled
A followed by 63 x characters, length 64 Compiled
A followed by 64 x characters, length 65 ASPIRE006: must be between 1 and 64 characters

LAN-binding examples: both languages ran

Both unchanged AppHost snippets used public/target port 5000, proxyless HTTP, and target host 0.0.0.0.

aspire describe api --apphost .doc-tester-workspace\pr454-fixtures\AppHost\AppHost.csproj --format json --non-interactive --nologo
aspire describe api --apphost .doc-tester-workspace\pr454-fixtures\TsAppHost\apphost.mts --format json --non-interactive --nologo
Invoke-WebRequest http://localhost:5000/

Results: resource Running; CLI environment ASPNETCORE_URLS=http://0.0.0.0:5000; loopback HTTP 200; requests to the host's own Ethernet IPv4 address on port 5000 also returned 200, for both languages.

The C# case was additionally rerun against normal generated web-project launch settings. It still returned 200; the CLI showed https://localhost:22022;http://0.0.0.0:5000. No firewall rule was changed, and access from a separate physical device was not tested.

The one displayed CLI command passed

In the isolated empty AppHost fixture:

aspire config set features.terminalCommandsEnabled true

Result:

Configuration 'features.terminalCommandsEnabled' set to 'true' locally.

No terminal session or experimental API was exercised.

Recommendations

  1. Priority fixes: Make the console service-discovery sequence genuinely reproducible: package version/install instructions, client definition or explicit placeholder label, and required imports.
  2. Documentation gaps: Identify the worker Redis client dependency and CORS JavaScript hosting prerequisite. Add the client-side credentials configuration requested by the prose.
  3. Clarify the CORS explanation: Distinguish actual middleware ordering from Map* call ordering in the minimal API examples; the blanket endpoint-mapping claim failed the controlled experiment.
  4. Verification still needed: Run container-dependent examples with an available engine and real image/application; validate console telemetry/ANSI/stdin and historical terminal claims on the intended builds.
  5. Product issues: None established by this source-blind run. Missing-dependency diagnostics and environmental blockers should not be promoted into assertions that an API is invalid.

Knowledge Gap Notes

Knowledge Gap: Project and dependency scaffolding

What I needed to know: How to supply the named AppHost project references, a service-defaults project, installed hosting integrations, and a JavaScript dev script that respects PORT.
Source of my knowledge: Aspire CLI templates/help plus explicitly constructed test scaffolding, not a complete setup sequence on these pages.
User impact: A new reader cannot copy the whole article into an empty repository and obtain the tested result. Ordinary contextual fragments are acceptable, but the prerequisite context must be visible.
Recommendation: State the expected starting application and identify dependency setup, especially the worker client and JavaScript hosting packages.

Knowledge Gap: Observing fragment output

What I needed to know: How to print otherwise-unused configuration variables and supply a surrounding builder for the .NET lookup fragment.
Source of my knowledge: Basic language/runtime knowledge, not additional Aspire source or API lookup.
User impact: Configuration examples are illustrations; they do not themselves demonstrate connection success.
Recommendation: Clearly distinguish configuration retrieval from an integration connectivity test. Observation lines added by this tester were not counted as documented code.

Explicit Limitations and Untested Examples

  • Redis processor startup, Redis/PostgreSQL background-worker startup, and all naming AppHosts' Redis/PostgreSQL/RabbitMQ integration runtime were not exercised: Docker daemon unavailable; the client program also had the documented build blockers.
  • Catalog service-discovery client resolution/HTTP calls were not exercised: the console Program.cs did not compile. Its C# and TypeScript AppHost blocks did compile.
  • Actual injection of ConnectionStrings__app-db, services__catalog-api__http__0, CATALOG_API_HTTP, and APP_DB_HOST was not observed. Only the client lookup examples with deliberately supplied environment values and actual frontend service-discovery injection were tested.
  • The container LAN examples were compile-only: no Docker engine and no real myregistry/myapp image.
  • The executable LAN examples were compile-only: uvicorn not on PATH and no supplied main:app application. The installed Python module did not eliminate these blockers.
  • “Container-to-host networking” had its text and link checked, but the default DCP tunnel, disabled-tunnel gateway fallback, Aspire 13.3 introduction, and cross-container connectivity were not runtime-verified.
  • C# explicit start was exercised through the dashboard; the TypeScript explicit-start sample was compiled but not separately lifecycle-tested.
  • The structured-logging fragment, ANSI color rendering, stdin limitation, experimental WithTerminal, and terminal diagnostic suppression were not runtime-tested.
  • Authentication/authorization middleware fragment runtime, actual authenticated cookie delivery with cross-origin browser credentials, dashboard OTLP/browser telemetry CORS, the two ASPIRE_DASHBOARD_CORS_ALLOWED_ORIGINS assignments, and standalone DASHBOARD__OTLP__CORS__ALLOWEDORIGINS were not exercised.
  • No separate-device LAN request, deployed/public-origin environment, historical 13.4.6 installation, or nightly build was tested.
  • No broad repository build/test suite was run; this was rendered-doc and targeted example execution only. No docs, source, dependency manifests outside the new test fixtures, PR metadata, or GitHub feedback were changed. No commit, push, or review request was made.

Evidence and Cleanup

Evidence files are preserved beside this report under:

C:\Users\maleger\.copilot\session-state\0d21fabc-759d-45d9-b1fb-41733ff02aa0\files

Key artifacts: pr454-rendered-evidence.json, the final eleven pr454-csharp-apphost-*.log / pr454-typescript-apphost-*.log cases, pr454-console-service-discovery.log, pr454-console-program-only.log, pr454-worker-client.log, pr454-name-validation.json, CORS browser/headers artifacts, LAN JSON artifacts, pr454-explicit-dashboard.yml, pr454-explicit-console.log, and pr454-cleanup.log. C# AppHost case 5's original log preserves the missing JavaScript prerequisite; the successful unchanged retest is recorded above.

Cleanup completed before freezing this report:

  • Every tested AppHost received aspire stop --apphost <its exact fixture path> --non-interactive --nologo; its owning attached PowerShell session was also stopped.
  • All direct API/origin test servers were stopped using their own session IDs.
  • Only browser session pr454-fulltest was closed. No “close all browsers” action was used.
  • Attached documentation server session pr454-docs-server was stopped.
  • Only the four known startup-generated tracked icon files were restored:
    • src\frontend\.starlight-icons\language-map.json
    • src\frontend\.starlight-icons\material-icons.json
    • src\frontend\.starlight-icons\safelist.json
    • src\frontend\.starlight-icons\version.txt
  • Only the newly created pr454-csharp, pr454-runtime, pr454-fixtures test paths, three test harness files, and the fifteen identified browser-generated scratch files were removed. Workspace parent directories were left intact.
  • Final verification: git status --short clean; HEAD unchanged at the reviewed SHA; TCP connection checks to ports 4354, 5000, 5094, and 3000 all False; no documentation server remains listening on 4354.

David Pine (@IEvangelist), the introductory wording fix is pushed in 71eefe88. Please re-review with these source-accuracy findings and the independent tester results in mind. This audit did not modify the PR branch.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 0d21fabc-759d-45d9-b1fb-41733ff02aa0
@maddymontaquila

Copy link
Copy Markdown
Contributor

Addressed the actionable source-review and doc-tester findings in ba23a63:

  • Removed obsolete terminal gating and unsupported version cutoffs; clarified experimental-build requirements and structured-log export prerequisites.
  • Made the console walkthrough runnable with package installation, required imports, a real typed client, and an actual service-discovery request. Added worker/client and AppHost hosting prerequisites and identified illustrative fragments.
  • Corrected CORS ordering, server-versus-browser request guidance, and cookie-versus-bearer handling; added the browser credentials example.
  • Clarified name validation, portable aliases, endpoint indexing, Kestrel overrides, TCP-only tunneling, and production wildcard-binding guidance.
  • Replaced the container placeholder with a published ASP.NET Core sample image; supplied the Python app/dependencies and invoked uvicorn as a module in both AppHost languages.

Validation: 66 targeted tests passed (documentation, custom components, and two-slash blocks); formatting and diff checks passed. The corrected console, worker, configuration lookup, three complete CORS APIs, credentials policy, and both updated C#/TypeScript networking examples compiled. The console service-discovery request returned HTTP 200; CORS GET/preflight checks passed; the literal credentials module passed using example-domain forwarding to the local API. The Python executable ran successfully in both AppHost languages. All four guides rendered in both language tabs and their internal links resolved.

Docker-backed runtime checks remain blocked by the unavailable daemon. Authenticated cookie exchange, separate-device LAN access, and experimental terminal runtime behavior were not verified here. These are validation limits, not silently reported passes.

David Pine (@IEvangelist), the fixes are pushed and the three accuracy threads are resolved; please re-review this updated commit.

@IEvangelist David Pine (IEvangelist) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Documentation accuracy review

Reviewed PR head: ba23a638138ccb34215a5e3786268ad12beb5d82.

Phase A source of truth: microsoft/aspire, main, e5f8dc6b1194773458881b400b1e2c91f91a33d8. Every product-source read was pinned to that SHA. No Community Toolkit or Azure SDK symbols required those repositories.

69 claim groups: 56 verified, 7 verified with nuance, 1 source-unverifiable, 0 contradicted, 5 narrative/context groups. Repeated API usages are grouped with their occurrences in the retained claim catalog.

Phase B: Four affected routes inspected independently with playwright-cli; current-head delta testing found 0 critical issues and 0 reproducible documentation warnings. Ten new code checks, three behavioral scenarios, and three literal installation commands passed. Seventeen unchanged AppHost compilation results were retained explicitly as historical evidence, not rerun. The full source-blind report follows.

The PR advanced from 71eefe884aa5561afd8c17df9563cef9e300c613 during the initial run. Both console compilation blockers and the obsolete terminal-feature-gate guidance were addressed in the update; none is reported against the current head.

Verdict: COMMENT, not request changes. No blocking finding remains. One framework/browser-owned credential-flow claim group remains outside the prescribed product-source verification and was not exercised behaviorally. Runtime qualifications and the CLI/daily-SDK mismatch are recorded rather than presented as failures.

Phase A — Claim verification

The inline comment records A48, the source-verification limitation for credentialed cookies and bearer-header behavior. This is not a claim that AllowCredentials is absent or incorrect: the permitted Aspire sources define neither ASP.NET Core's CorsPolicyBuilder nor browser cookie enforcement, and the blind tester validated the new browser snippet's syntax but did not execute those authentication flows.

The version-placeholder check found no inappropriate fixed current Aspire version. Removed historical-version statements are not carried forward as findings. Broken-link validation, build/lint/style review, and unchanged-file findings were excluded.

Verified and verified-with-nuance claims, with pinned source evidence

All paths in this table are in microsoft/aspire at the SHA above. Source-file links are SHA-pinned; numbers identify the evidence lines. V means verified; N means verified with the stated qualification.

ID Verdict Claim Source evidence
A01 V Executable, Python, JavaScript and .NET project resources do not require an HTTP endpoint. src/Aspire.Hosting/ExecutableResourceBuilderExtensions.cs:33-69; src/Aspire.Hosting.Python/PythonAppResourceBuilderExtensions.cs:68-71; JavaScript hosting:1169-1179; project builder:68-75
A02 V C# builder/build/run and generated TypeScript equivalents exist. ATS API:615,628,764; src/Aspire.Hosting/DistributedApplicationBuilder.cs:877-904; project builder:114-130
A03 V C# AddProject<Projects.*> and TypeScript name/path registration are supported. project builder:68-75,102-130
A04 V Redis hosting exposes AddRedis/addRedis. src/Aspire.Hosting.Redis/RedisBuilderExtensions.cs:65-79
A05 V Referencing cache supplies ConnectionStrings__cache. resource extensions:1113-1150; connection names:15,64-78
A06 V Workload templates support .NET 8 and later. src/Aspire.ProjectTemplates/templates/aspire-starter/.template.config/template.json:64-87
A07 V The console walkthrough installs hosting and references service defaults. service defaults:20-42; literal current-head installation/compilation independently passed in Phase B
A08 V AddServiceDefaults accepts Generic Host builders and registers telemetry, health and discovery defaults. service defaults:20-42
A09 V Referenced catalog endpoints support a discovery-enabled logical HTTP-client URI. service defaults:26-35; resource extensions:845-864,1265-1273
A10 V WaitFor/waitFor gates startup, including dependency health checks. resource extensions:2458-2469,2485-2510
A11 V Background workers use Generic Host/BackgroundService with client integration registration. src/Aspire.Hosting/ResourceLoggerForwarderService.cs:13-20; Redis client:34-39,110-113
A12 V PostgreSQL server and database builder APIs exist in both languages. src/Aspire.Hosting.PostgreSQL/PostgresBuilderExtensions.cs:50-59,193-207
A13 V AddRedisClient reads the named connection string. Redis client:34-39,93-113
A14 V WithExplicitStart prevents automatic resource startup. resource extensions:2718-2744
A15 V Console logs are not the bidirectional stdin terminal. console logs:837-853; terminal builder:25-36
A16 V WithTerminal is experimental under ASPIRETERMINAL001. terminal builder:66-69,124-126; src/Aspire.Hosting/ApplicationModel/TerminalDiagnostics.cs:14
A19 N Configured console and OTLP export feed the two logging views. service defaults:47-51,80-88; console logs:839-851; src/Shared/ConsoleLogs/AnsiParser.cs:229-231,460-462,483-487. Terminal-backed executables use PTY output instead of normal stdout/stderr streams: resource logs:124-136.
A20 V Double underscores map to .NET hierarchy; original logical names are used for lookup. connection names:15,64-78; name encoder:57-59; src/Components/Aspire.Npgsql/AspirePostgreSqlNpgsqlExtensions.cs:66-68
A21 V Original dashed connection names and portable underscore aliases are both documented. connection names:64-78; resource extensions:1089-1092,1143-1149
A22 V Discovery indexing is per scheme/name, with actual schemes used for http/https-named endpoints. resource extensions:806-864
A23 V Uppercase endpoint variables encode dashes as underscores. name encoder:22-42; resource extensions:838-842
A24 V Exported connection properties use encoded uppercase prefixes. resource extensions:1153-1167,1207-1213
A25 V AddNpgsqlDataSource("app-db") uses the original logical name. src/Components/Aspire.Npgsql/AspirePostgreSqlNpgsqlExtensions.cs:32-33,66-68
A26 V RabbitMQ hosting exposes AddRabbitMQ/addRabbitMQ. src/Aspire.Hosting.RabbitMQ/RabbitMQBuilderExtensions.cs:30-39
A27 V Names are checked during model registration/build. src/Aspire.Hosting/DistributedApplicationBuilder.cs:891-895,911-914,985-992
A28 V Default resource-name length is 1–64 inclusive. name validation:12-16,73-79
A29 V Default names must start with an ASCII letter. name validation:108-112,125-133
A30 V Both letter cases are accepted; underscores and other unsupported characters are rejected. name validation:82-103,125-145
A31 V Consecutive hyphens are rejected by default. name validation:87-95
A32 V A trailing hyphen is rejected by default. name validation:114-118
A33 V C# literal diagnostics and runtime/non-C# validation are distinguished correctly. src/Aspire.Hosting.Analyzers/AppHostAnalyzer.Diagnostics.cs:13-21; AppHostAnalyzer.cs:135-142; AppHostAnalyzer.DetectInvalidModelNames.cs:22-32; src/Aspire.Hosting/DistributedApplicationBuilder.cs:911,985-992; name validation:48-58
A35 V Builds containing the experimental terminal API provide interactive sessions. terminal builder:25-43,66-110; historical availability and obsolete gate claims were removed
A36 V CORS governs browser response access, not server-side request rejection. CORS tests:83-106 returns 204 without CORS response headers for a disallowed origin; :42-79 tests allowed origins
A37 V Only server-originated calls are exempt; browser calls from server-rendered apps still require CORS when cross-origin. CORS tests:83-106; service defaults:28-35
A38 V Endpoint routing does not automatically grant browser CORS access. DCP executor:687-706; separate CORS registration in dashboard:280-304,541-545
A39 V CORS/default-policy/middleware APIs and service-default endpoints are used as supported. dashboard:282-304,468-473,541-545; service defaults:116-135
A40 N Allowing any origin removes the origin allowlist. CORS tests:110-134. CORS is separate from authentication; the production caution is conservative guidance, not an authentication toggle.
A41 N Cors:AllowedOrigins is consistently read as the example application's origin array. dashboard:288,468-473 corroborates policy usage. This key is application-defined, not an Aspire configuration constant; independent literal execution covers the example.
A42 V JavaScript app registration accepts directory/run script and an endpoint-provided PORT. JavaScript hosting:1168-1179; resource extensions:1836-1841
A43 V The frontend HTTP reference supplies services__frontend__http__0. resource extensions:806-864,1265-1273
A44 V WithExternalHttpEndpoints marks HTTP endpoints external for publishing. resource extensions:1919-1932
A45 V Injected service URLs are network-context-dependent, not necessarily deployed browser origins. DCP utilities:209-217; tunnel provisioning:169-219; dashboard event handlers:405
A46 N CORS execution precedes authorization/endpoints; endpoint registration is not execution. dashboard:541-545,591,623-629 supports the relevant execution order. Detailed automatic-routing implementation is ASP.NET Core-owned; the previous “before every mapping call” rule is removed.
A47 V Configured CORS handles recognized OPTIONS preflight. CORS tests:42-79; dashboard:541-545
A49 V Origin allowlists match the browser's origin. CORS tests:42-106 compares configured origins and omits allow-origin for a distinct one
A50 V Dashboard OTLP HTTP ingestion supports browser telemetry with CORS configuration. dashboard:280-304,623-624; CORS tests:42-79
A51 V AppHost origin override is ASPIRE_DASHBOARD_CORS_ALLOWED_ORIGINS, comma-separated. src/Shared/KnownConfigNames.cs:16; dashboard event handlers:475-488; dashboard:288
A52 V The dashboard supports * origins. CORS tests:110-134
A53 N Standalone origin configuration is DASHBOARD__OTLP__CORS__ALLOWEDORIGINS. src/Shared/DashboardConfigNames.cs:35; src/Aspire.Dashboard/Configuration/DashboardOptions.cs:150-153 requires an OTLP HTTP endpoint. AppHost translation additionally sets allowed headers *: dashboard event handlers:487-488. The standalone origin setting alone does not do that.
A54 N Endpoint annotations default to localhost. src/Aspire.Hosting/ApplicationModel/EndpointAnnotation.cs:239-242; DCP executor:693-706. Container-published port binding is a distinct layer: src/Aspire.Hosting/Dcp/ContainerCreator.cs:732-735 leaves default HostIP unset.
A55 N 0.0.0.0 selects wildcard binding. DCP utilities:364-377. Specifically IPv4; :: is IPv6, and dual-stack binding has a separate mode.
A56 V The C# LAN example modifies a proxyless HTTP endpoint with matching ports. resource extensions:1523-1537,1836-1841; DCP executor:687-706
A57 V Standard URL configuration follows the endpoint; explicit Kestrel listener hosts are retained in run mode. project builder:1124-1165,1215-1240
A58 V TypeScript HTTP callback context supports awaited targetHost.set. resource extensions:1573-1580; src/Aspire.Hosting/ApplicationModel/EndpointUpdateContext.cs:11-12,58-64; ATS API:477,482,830; tests/Aspire.Hosting.CodeGeneration.TypeScript.Tests/Snapshots/AtsGeneratedAspire.verified.ts:243-251,271-283
A59 V A proxyless container endpoint maps public port to container target port. src/Aspire.Hosting/Dcp/ContainerCreator.cs:712-735
A60 V C#/TypeScript container registration accepts the updated image and tag parameters. src/Aspire.Hosting/ContainerResourceBuilderExtensions.cs:137-140,151-183. Image launch/content validation is explicitly not claimed.
A61 V Explicit ASPNETCORE_URLS is a supported workload listener setting. resource extensions:228-248; project builder:1128-1133
A62 V Executable registration forwards python -m uvicorn arguments with AppHost-relative working directory. src/Aspire.Hosting/ExecutableResourceBuilderExtensions.cs:33-69; src/Aspire.Hosting.Python/PythonAppResourceBuilderExtensions.cs:286-300 corroborates uvicorn argument handling
A63 V The enabled container tunnel supports TCP, not non-TCP host endpoint references. src/Aspire.Hosting/Dcp/DcpOptions.cs:144; tunnel provisioning:99-102,169-219,250-255
A64 V With the tunnel disabled, address selection falls back to runtime host bridge names. tunnel provisioning:484-500; DCP executor:127-128
A69 V C# project references generate Projects.* metadata; TypeScript uses actual paths. src/Aspire.Hosting.AppHost/build/Aspire.Hosting.AppHost.in.targets:39-100; project builder:114-130
A70 V Hosting integrations belong in AppHost; Redis client registration belongs in the worker. src/Aspire.Hosting.Redis/RedisBuilderExtensions.cs:65-79; src/Aspire.Hosting.PostgreSQL/PostgresBuilderExtensions.cs:50-59; JavaScript hosting:1168-1179; src/Components/Aspire.StackExchange.Redis/Aspire.StackExchange.Redis.csproj:5-7; Redis client:34-39
A71 V The minimal configuration example installs the environment-variable provider package. src/Components/Aspire.StackExchange.Redis/Aspire.StackExchange.Redis.csproj:30; name encoder:57-59

Narrative/context groups A34, A66–A68 and A72 record naming recommendations, navigation/sidebar context, version-placeholder intent, and user-defined/platform-bootstrap fixtures rather than additional Aspire public APIs. The defined typed client and FastAPI app were tested as application examples, not searched for as product types. Worker-template command help was also checked.

Phase B — Doc-tester results

The complete frozen report follows. Its wording and evidence are preserved, except that the local session-artifact root is redacted for privacy. The cleanup handoff describes the tester's handoff-time state, not resources intended to remain running after review cleanup.

Documentation Test Report

Focus Area: Phase B delta retest — microsoft/aspire.dev PR #454
Date: 2026-10-05
Tester: doc-tester agent
Current SHA: ba23a638138ccb34215a5e3786268ad12beb5d82
Historical SHA: 71eefe884aa5561afd8c17df9563cef9e300c613
Local URL: http://localhost:4321/

This report supersedes the historical report for current-head findings. Both former compilation blockers are resolved. The historical evidence remains unchanged.

Testing remained source-blind. No product implementation/source or Phase A evidence was consulted. No comments or reviews were posted.

Scope

Re-read the updated rendered content and C#/TypeScript tabs at:

  • /app-host/console-apps/
  • /app-host/cors-configuration/, including Development/Production tabs
  • /app-host/resource-naming/
  • /fundamentals/networking-overview/ — changed LAN examples, listener caveats, and container-to-host caveats only

Execution was limited to the requested delta:

  • Updated plain-console walkthrough and supplied typed client.
  • Updated worker compilation.
  • Representative updated CORS API with explicit routing.
  • Isolated Python dependency setup and executable example.
  • Changed container/executable AppHost snippet compilation in both languages.
  • New browser credential snippet syntax validation.

Summary

Counts cover newly executed checks only. Historical checks are listed separately.

Category Passed Failed Documentation Warnings
Content Accuracy — executed behavioral scenarios 3 0 0
Code Examples 10 0 0
CLI Commands — literal dependency installation 3 0 0
Links Not assessed — out of scope — —

Current findings: 0 critical issues; 0 reproducible documentation warnings.
One toolchain caveat is recorded below as environment information, not a PR defect.

Critical Issues

None established at the updated head.

Historical blocker disposition

Historical issue Updated-head result
NU1015: hosting package reference omitted its version Resolved. The rendered dotnet add package Microsoft.Extensions.Hosting command installed version 10.0.12; restore and compilation passed.
CS1061: AddHttpClient lacked the dependency-injection import Resolved. The updated Program.cs supplies the import and compiled literally, without adding corrective imports.

Neither historical blocker should be posted as a current finding.

Warnings

No reader-facing warning was established within this focused retest.

Environment caveat: installed CLI versus daily hosting SDK

The installed Aspire CLI remains:

13.6.0+8230626c0a4656a8417bfebdd61ba455a07b7411

The AppHost hosting packages and generated TypeScript SDK were explicitly configured to the same daily version used historically:

17.0.0-preview.1.26505.2

TypeScript restoration succeeded but emitted the known CLI/SDK mismatch warning. C# builds emitted ASPIRE010 because the fixture explicitly used AspireUseCliBundle=false.

Successful C# execution confirmed:

Aspire AppHost version:
17.0.0-preview.1.26505.2+b00cff093521bf5ff04f729a44a57b21d228f3a8

The new scaffolder selected template version 17.0.0-preview.1.26505.3; the test AppHost SDK/package references were pinned to .2 before compilation, preserving the warmed historical hosting version.

No global tools, SDKs, or machine configuration were changed. The known old bootstrap failure was not repeated.

Passed Checks

1. Updated console walkthrough — freshly executed

The test used a plain net10.0 console project, an existing service-defaults project, and the newly documented CatalogClient.cs.

From the console project directory, the rendered command was executed literally:

dotnet add package Microsoft.Extensions.Hosting

Result: hosting version 10.0.12 installed successfully.

The rendered project-reference ItemGroup, typed client, and complete startup program were copied without corrective changes.

dotnet build daily-starter\MyConsoleApp\MyConsoleApp.csproj --nologo --verbosity quiet

Result:

Build succeeded.
    0 Warning(s)
    0 Error(s)

The documented AppHost service-discovery sequence was then executed against a minimal CatalogService fixture exposing /.

Observed:

services__catalog__http__0=http://localhost:5225

Client logs demonstrated actual discovery and HTTP execution:

Start processing HTTP request GET https+http://catalog/
Sending HTTP request GET http://localhost:5225/
Received HTTP response headers ... - 200
Hello World!
Application is shutting down...

The processor resource finished with exit code 0.

This freshly verifies package installation, imports, supplied client definition, host startup, HTTP client resolution, service discovery, request execution, output, and host shutdown.

2. Updated worker — freshly compiled

The rendered installation command was executed:

dotnet add package Aspire.StackExchange.Redis

It installed version 13.6.0, as selected by the literal command. This client-package result is reported separately from the daily AppHost hosting version.

The updated DataProcessor.cs and Program.cs, including explicit imports and Task.CompletedTask, were copied with the shared service-defaults reference.

dotnet build daily-starter\DataWorker\DataWorker.csproj --nologo --verbosity quiet

Result: 0 warnings, 0 errors.

The worker was not rerun or connected to Redis during this delta.

3. Updated CORS API — freshly compiled and exercised

The complete local-injection API example was copied, including:

app.UseRouting();
app.UseCors();
app.MapDefaultEndpoints();
app.MapGet("/", () => Results.Ok());

Compilation passed with 0 warnings and 0 errors.

The API ran with process-local development configuration and an injected frontend origin:

services__frontend__http__0=http://localhost:54300

A browser request from that origin, including a custom header requiring preflight, returned HTTP 200.

Observed OPTIONS response:

Status: 204
Access-Control-Allow-Origin: http://localhost:54300
Access-Control-Allow-Methods: GET
Access-Control-Allow-Headers: x-delta-probe

The updated credentials guidance was inspected, including its module/async-function context, credentials: 'include', cookie-policy caveats, and separate bearer-header explanation.

The copied browser snippet also passed:

node --check credentials-client.mjs

No cookie-delivery or authentication scenario was claimed as executed.

4. Updated Python executable — freshly installed, compiled, and executed

An isolated Python venv was created entirely beneath the delta test directory. Dependency installation used the rendered command:

python -m pip install fastapi uvicorn

Resolved versions:

Python 3.14.3
fastapi==0.141.1
uvicorn==0.54.0

The rendered main.py passed Python compilation.

The exact updated C# executable AppHost snippet was executed with the venv on the process-local PATH. Aspire selected the isolated interpreter:

...\delta\python-env\Scripts\python.exe

Resource arguments matched the documentation:

-m uvicorn main:app --host 0.0.0.0 --port 8000

Observed:

Uvicorn running on http://0.0.0.0:8000

The actual listener was 0.0.0.0:8000. Terminal and browser checks returned HTTP 200 with:

{"message":"Hello from Aspire"}

No global Python package installation occurred.

5. Changed networking AppHost snippets — freshly compiled

All four changed snippets compiled against the daily hosting/generated SDK:

Snippet Result
C# public ASP.NET container image Passed
TypeScript public ASP.NET container image Passed
C# python -m uvicorn executable Passed; also executed
TypeScript python -m uvicorn executable Passed

The public container image was not launched. The TypeScript executable graph was compile-tested, not runtime-tested.

6. Updated rendered guidance — freshly inspected

The updated pages visibly include:

  • Explicit AppHost/project/integration prerequisites.
  • Supplied console typed-client implementation.
  • Worker client-package installation and placeholder-work qualification.
  • Routing versus endpoint-registration distinction.
  • Browser credential configuration and cookie/bearer qualifications.
  • Portable connection-string alias, per-name/scheme indexing, and diagnostic qualifications.
  • Public container image, Python dependencies, and listener/tunnel caveats.

These inspection results do not imply runtime verification of every new conceptual qualification.

Inherited Historical Evidence

Historical head: 71eefe884aa5561afd8c17df9563cef9e300c613

Browser-copied AppHost blocks were compared by exact text against the saved historical blocks.

  • 18 original AppHost examples retain unchanged text.
  • The C# console service-discovery AppHost example was freshly re-executed.
  • The remaining 17 compilation results are inherited, not rerun:
    • Console page: 7
    • CORS page: 2
    • Naming page: 6
    • Networking ASP.NET Core examples: 2

The unchanged ASP.NET Core LAN snippets’ historical runtime results remain historical evidence for the standard ASPNETCORE_URLS case only. They do not freshly validate the new explicit-Kestrel caveat.

Historical CORS API execution was not presented as current execution because those complete programs changed. The representative updated API was independently rerun above.

The removed historical terminal-flag instructions and old compilation blockers were not carried forward as current findings.

Recommendations

  1. Do not post the former restore/import blockers against the updated head.
  2. Preserve the new executable prerequisites and complete console-client walkthrough.
  3. Treat the remaining unexecuted conceptual qualifications as coverage boundaries, not inferred defects.
  4. No further fix is required by this focused delta execution report.

Knowledge Gaps

No unresolved knowledge gap prevented completion of the bounded walkthrough.

The formerly undefined CatalogClient is now supplied by the documentation.

The minimal CatalogService fixture and Python venv isolation were test-environment provisions. The updated documentation explicitly establishes the required catalog endpoint and the need to install Python dependencies into the environment used by the AppHost.

Commands and Runtime Versions

Command Current delta outcome
pnpm dev — repository root Ready at port 4321; no website build
dotnet add package Microsoft.Extensions.Hosting Passed; installed 10.0.12
dotnet add package Aspire.StackExchange.Redis Passed; installed 13.6.0
dotnet build daily-starter\MyConsoleApp\MyConsoleApp.csproj --nologo --verbosity quiet Passed
dotnet build daily-starter\DataWorker\DataWorker.csproj --nologo --verbosity quiet Passed
dotnet build daily-starter\Api\Api.csproj --nologo --verbosity quiet Passed
dotnet build daily-starter\MyApp.AppHost\MyApp.AppHost.csproj --nologo --verbosity quiet Passed for console graph and both changed C# networking snippets
.\node_modules\.bin\tsc.cmd --noEmit -p tsconfig.apphost.json — TypeScript fixture Passed for both changed networking snippets
node --check credentials-client.mjs Passed
python -m pip install fastapi uvicorn — isolated venv Passed
python -m py_compile daily-starter\MyApp.AppHost\main.py Passed
dotnet run --project MyApp.AppHost\MyApp.AppHost.csproj --no-build --launch-profile http Console walkthrough and Python executable scenarios passed
dotnet run --project Api\Api.csproj --no-build --no-launch-profile --urls http://127.0.0.1:54154 Updated CORS scenario passed

Versions:

  • .NET SDK: 10.0.401; runtime: 10.0.12
  • Daily Aspire hosting/generated SDK: 17.0.0-preview.1.26505.2
  • Installed Aspire CLI: 13.6.0
  • Node: v24.13.1; TypeScript: 5.9.3
  • Python: 3.14.3; FastAPI: 0.141.1; Uvicorn: 0.54.0
  • Astro: 7.1.3; pnpm: 11.9.0

Unexecuted Behaviors

Not represented as current critical findings:

  • Container image launch, port mapping, or container-to-host tunnel behavior.
  • Non-TCP transport restrictions and tunnel-disabled fallbacks.
  • Explicit Kestrel:Endpoints override behavior.
  • Runtime portable-alias emission, endpoint-scheme indexing, or new TypeScript name-validation qualification.
  • Worker execution, Redis operations, or PostgreSQL/RabbitMQ graphs.
  • Cookie delivery, bearer authentication, production CORS, and dashboard telemetry CORS.
  • TypeScript executable runtime.
  • Interactive terminal APIs and dashboard presentation.
  • Links, website builds, formatting, spelling, style, and unchanged-file auditing.

Evidence and Cleanup Handoff

Delta evidence:

[local session artifacts]\phase-b-tests\delta

Key files:

  • MyConsoleApp-build.log
  • console-install.log
  • console-client-output.log
  • console-model-sanitized.json
  • console-delta-evidence.yaml
  • DataWorker-build.log
  • worker-install.log
  • cors-browser-result.log
  • cors-preflight-result.json
  • networking-csharp-checks.json
  • networking-typescript-checks.json
  • python-versions.txt
  • python-resource-output.log
  • python-listener.json
  • python-http-result.json
  • inherited-unchanged-apphost-examples.json
  • delta-outcomes.json

All delta projects, the Python venv, and generated project output were deleted. Retained runtime logs have dashboard login tokens redacted.

Browser session pr454-phase-b-delta-3779 is closed. All test resources/helpers are stopped; their allocated helper ports are closed.

Updated server left running

  • shellId: pr454-phase-b-delta-server
  • Mode: attached async
  • PowerShell PID: 9780
  • HTTP listener PID: 88048
  • Port: 4321
  • URL: http://localhost:4321/
  • Final readiness: HTTP 200
  • Tracked checkout: clean at ba23a638138ccb34215a5e3786268ad12beb5d82

Generated repository paths

Restored to HEAD:

src\frontend\.starlight-icons\language-map.json
src\frontend\.starlight-icons\material-icons.json
src\frontend\.starlight-icons\safelist.json
src\frontend\.starlight-icons\version.txt

Live Astro files observed:

src\frontend\.astro\content-assets.mjs
src\frontend\.astro\content-modules.mjs
src\frontend\.astro\content.d.ts
src\frontend\.astro\data-store.json
src\frontend\.astro\dev.json
src\frontend\.astro\types.d.ts
src\frontend\.astro\collections\docs.schema.json
src\frontend\.astro\collections\i18n.schema.json
src\frontend\.astro\collections\packages.schema.json
src\frontend\.astro\collections\tsModules.schema.json
src\frontend\.astro\integrations\_astrojs_starlight\i18n-plugins.d.ts

The server also uses the existing generated src\frontend\.env.local and warmed src\frontend\node_modules\.

After posting, stop the recorded server shell before removing its live .astro files and generated .env.local. No documentation or repository code edits remain.

policy.WithOrigins("https://myapp.com")
.AllowAnyHeader()
.AllowAnyMethod()
.AllowCredentials(); // Enable credentials

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Source-verification limitation, not a contradiction (A48). The claim .AllowCredentials(); // Enable credentials and the related cookie/bearer guidance depend on ASP.NET Core and browser implementations, not Aspire-owned code.

At the reviewed microsoft/aspire main SHA e5f8dc6b1194773458881b400b1e2c91f91a33d8, DashboardWebApplication.cs and OtlpCorsHttpServiceTests.cs cover noncredentialed OTLP origin/preflight policies. They do not define Microsoft.AspNetCore.Cors.Infrastructure.CorsPolicyBuilder or establish credentialed-cookie/bearer behavior; the prescribed Aspire repositories did not provide that evidence.

The independent tester checked the new browser snippet's syntax, but explicitly did not execute cookie delivery or authentication flows. Those behaviors therefore remain unverified in this review. This is not a claim that the standard API is missing or incorrect, and is not a request to remove the guidance. Full behavioral sign-off would need a credentialed-cookie and explicit bearer-header scenario separately.

@alistairmatthews

Copy link
Copy Markdown
Collaborator

Please review and merge #1845 to add JavaScript example code to this PR, for all non-AppHost examples.

## Summary

AppHost examples in copilot/add-docs-for-app-model currently include
both C# and typescript in tabs. However, examples for executables,
worker services, and web services include only .NET C# code. This PR
adds JavaScript equivalent examples for all C# examples.

NOTE: This PR targets copilot/add-docs-for-app-model, not main. PR #454 

## Third-party links and affiliations

None

## Validation

- Test suite run in full: `pnpm test`
- I asked Claude to test the JavaScript examples - it compiled and ran
them successfully.
@IEvangelist
David Pine (IEvangelist) enabled auto-merge (squash) October 13, 2026 16:22

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ready to go.

@IEvangelist
David Pine (IEvangelist) merged commit af7b7ca into main Oct 13, 2026
19 checks passed
@IEvangelist
David Pine (IEvangelist) deleted the copilot/add-docs-for-app-model-api branch October 13, 2026 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Discord Feedback] App Model API gaps - CORS, console apps, naming, networking

8 participants