Skip to content

TypeScript SDK codegen doesn't include Aspire.Hosting.Python exports in bundle mode #15583

@davidfowl

Description

@davidfowl

Description

When using the CLI bundle mode (prebuilt AppHost server), the TypeScript SDK codegen generates an SDK that contains functions from Aspire.Hosting core but no functions from Aspire.Hosting.Python (e.g., addUvicornApp, addPythonApp, withUv, etc.).

This was discovered while adding the Python starter template to the CLI template factory (#15574).

Reproduction

  1. Create a TypeScript AppHost with Aspire.Hosting.Python in aspire.config.json
  2. Run aspire restore (or aspire new with the py-starter template) using the CLI bundle (not dotnet SDK mode)
  3. Check .modules/aspire.ts — it contains ~791K chars but zero Python functions

Details

  • The aspire.config.json correctly lists Aspire.Hosting.Python with the proper version
  • The Aspire.Hosting.Python NuGet package exists and contains lib/net8.0/Aspire.Hosting.Python.dll with proper [AspireExport] attributes on extension methods
  • The PrebuiltAppHostServer correctly adds Aspire.Hosting.Python to AtsAssemblies in appsettings.json
  • The AssemblyLoader should discover and load it from the ASPIRE_INTEGRATION_LIBS_PATH
  • The SDK contains functions from Aspire.Hosting core (addContainer, addExecutable, addParameter, etc.) but no integration package functions

Expected behavior

The generated SDK should include addUvicornApp, addPythonApp, withUv, withPip, etc. from Aspire.Hosting.Python.

Environment

  • Aspire version: 13.3.0-pr builds
  • CLI mode: Bundle (prebuilt AppHost server)
  • Platform: Linux (Docker E2E environment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-integrationsIssues pertaining to Aspire Integrations packages

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions