Skip to content

Fix staging Aspire CLI install command for polyglot apphost.ts support#1496

Draft
Copilot wants to merge 9 commits intomainfrom
copilot/update-samples-for-aspire-cli
Draft

Fix staging Aspire CLI install command for polyglot apphost.ts support#1496
Copilot wants to merge 9 commits intomainfrom
copilot/update-samples-for-aspire-cli

Conversation

Copy link
Contributor

Copilot AI commented Mar 3, 2026

The polyglot apphost.ts files require the staging Aspire CLI (native binary), not the NuGet-based tool. The install commands in POLYGLOT_NOTES.md used incorrect flags.

Changes

Still pending

Running aspire run for each apphost.ts to generate .modules/ and validate the gap analysis requires the staging CLI, which needs aspire.dev network access. The gap analysis in POLYGLOT_NOTES.md is spec-based and explicitly marked as unvalidated — actual API availability will differ once .modules/aspire.ts is generated.

# Required install (stable NuGet CLI does NOT detect apphost.ts):
curl -sSL https://aspire.dev/install.sh | bash -s -- -q staging

# Then for each sample:
cd samples/<sample>/AppHost
aspire add redis    # triggers SDK codegen
aspire run          # generates .modules/, starts app

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:

  • 80zvsblobprodcus35.vsblob.vsassets.io
    • Triggering command: /tmp/aspire-src/.dotnet/dotnet /tmp/aspire-src/.dotnet/dotnet msbuild /m /nologo /clp:Summary /v:minimal /nr:true /warnaserror /p:TreatWarningsAsErrors=true /p:ContinuousIntegrationBuild=false /tmp/aspire-src/artifacts/toolset/restore.proj /t:__WriteToolsetLocation /clp:ErrorsOnly;NoSummary /p:__ToolsetLocationOutputFile=/tmp/aspire-src/artifacts/toolset/10.0.0-beta.26123.2.txt (dns block)
    • Triggering command: /tmp/aspire-src/.dotnet/dotnet dotnet build src/Aspire.Cli/Aspire.Cli.csproj -p:PublishAot=false --no-incremental .net9 (dns block)
  • aka.ms
    • Triggering command: /usr/bin/curl curl -sSL --connect-timeout 10 -L REDACTED (dns block)
    • Triggering command: /usr/bin/curl curl -sSI --connect-timeout 10 -L REDACTED (dns block)
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)
  • aspire.dev
    • Triggering command: /usr/bin/curl curl -sSL REDACTED (dns block)
    • Triggering command: /usr/bin/nslookup nslookup aspire.dev (dns block)
    • Triggering command: /usr/bin/host host aspire.dev (dns block)
  • aspiredev.netlify.app
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)
  • dnceng.pkgs.visualstudio.com
    • Triggering command: /tmp/aspire-src/.dotnet/dotnet /tmp/aspire-src/.dotnet/dotnet msbuild /m /nologo /clp:Summary /v:minimal /nr:true /warnaserror /p:TreatWarningsAsErrors=true /p:ContinuousIntegrationBuild=false /tmp/aspire-src/artifacts/toolset/restore.proj /t:__WriteToolsetLocation /clp:ErrorsOnly;NoSummary /p:__ToolsetLocationOutputFile=/tmp/aspire-src/artifacts/toolset/10.0.0-beta.26123.2.txt (dns block)
    • Triggering command: /tmp/aspire-src/.dotnet/dotnet dotnet build src/Aspire.Cli/Aspire.Cli.csproj -p:PublishAot=false --no-incremental .net9 (dns block)
  • dns.google
    • Triggering command: /usr/bin/python3 python3 (dns block)
  • dotnetbuilds.azureedge.net
    • Triggering command: /usr/bin/curl curl -sSI --connect-timeout 10 REDACTED (dns block)
  • https://api.github.com/repos/dotnet/aspire/releases
    • Triggering command: /usr/bin/curl curl -sSL --connect-timeout 10 REDACTED (http block)
    • Triggering command: /usr/bin/curl curl -sSL --connect-timeout 10 REDACTED -H Accept: application/vnd.github.v3&#43;json (http block)
  • ievangelist.github.io
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

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


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits March 3, 2026 15:54
Create TypeScript equivalents of C# AppHost.cs files using the Aspire
polyglot apphost SDK for 14 samples. Each file uses the createBuilder
pattern with camelCase method names and includes POLYGLOT GAP comments
for features not yet available in the TypeScript SDK.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ap analysis

Create apphost.ts files for 14 samples, converting C# AppHost.cs to
TypeScript polyglot apphost SDK equivalents. Each file uses the Aspire
polyglot SDK pattern (createBuilder/build/run) and documents all
POLYGLOT GAP items where C# features are not available in the
TypeScript SDK.

Add comprehensive POLYGLOT_NOTES.md documenting per-sample gap analysis,
cross-cutting issues, feature availability matrix, and recommendations.

Co-authored-by: IEvangelist <7679720+IEvangelist@users.noreply.github.com>
Copilot AI changed the title [WIP] Update samples to use latest staging Aspire CLI Add polyglot apphost.ts conversions for all samples with gap analysis Mar 3, 2026
@IEvangelist
Copy link
Member

Hey @copilot, while you did an okay job - I think you might need to adjust how you approached this problem slightly. When you create the TypeScript apphost.ts, you need to add integrations using the aspire add {package} command. This is the correct way to add packages with the polyglot approach, and should help resolve the staging packages correctly.

Copilot AI and others added 2 commits March 3, 2026 17:24
Address review feedback: each apphost.ts now includes setup comments
listing which aspire add commands to run for integration packages.
Previously commented-out code (marked as POLYGLOT GAP) is now active
code that uses APIs available after running aspire add. Updated
POLYGLOT_NOTES.md with per-sample setup instructions and revised
feasibility matrix.

Co-authored-by: IEvangelist <7679720+IEvangelist@users.noreply.github.com>
… fixes

Co-authored-by: IEvangelist <7679720+IEvangelist@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Mar 3, 2026

Hey @copilot, while you did an okay job - I think you might need to adjust how you approached this problem slightly. When you create the TypeScript apphost.ts, you need to add integr...

Updated in 781e1e0 and 8e2710f. Each apphost.ts now starts with setup comments listing the required aspire add commands (e.g., aspire add redis, aspire add javascript, aspire add orleans). Previously commented-out code that was marked as "POLYGLOT GAP" is now active code that uses the APIs made available after running the appropriate aspire add commands. The POLYGLOT_NOTES.md has been updated with per-sample setup instructions and a revised feasibility matrix — most samples now show as "Mostly" or "Fully" convertible.

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:

  • aspiredev.netlify.app
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

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

Copilot AI changed the title Add polyglot apphost.ts conversions for all samples with gap analysis Add polyglot apphost.ts conversions for all samples with aspire add setup Mar 3, 2026
@IEvangelist
Copy link
Member

Related to dotnet/aspire#14069

…pphost.ts

The stable Aspire CLI (13.1.2 from NuGet) does not include TypeScript
polyglot apphost support. The native staging binary from aspire.dev is
required to detect and run apphost.ts files. Updated POLYGLOT_NOTES.md
to clearly document this, mark all feasibility ratings as expected
rather than confirmed, add a validation checklist, and note the
container runtime prerequisite.

Co-authored-by: IEvangelist <7679720+IEvangelist@users.noreply.github.com>
Copilot AI changed the title Add polyglot apphost.ts conversions for all samples with aspire add setup Add polyglot apphost.ts conversions for all samples with gap analysis Mar 3, 2026
Copilot AI and others added 3 commits March 3, 2026 21:04
Co-authored-by: IEvangelist <7679720+IEvangelist@users.noreply.github.com>
…nfig

Co-authored-by: IEvangelist <7679720+IEvangelist@users.noreply.github.com>
Co-authored-by: IEvangelist <7679720+IEvangelist@users.noreply.github.com>
Copilot AI changed the title Add polyglot apphost.ts conversions for all samples with gap analysis Fix staging Aspire CLI install command for polyglot apphost.ts support Mar 3, 2026
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.

2 participants