Skip to content

TypeScript AppHost fails code generation with 13.4.3 CLI and 13.5 daily SDK #18110

Description

Summary

Running a TypeScript/Node.js AppHost with a daily SDK configured fails during TypeScript code generation when the installed Aspire CLI is 13.4.3 and the configured SDK is 13.5.0-preview.1.26310.1.

Repro

Given aspire.config.json:

{
  "appHost": {
    "path": "apphost.mts",
    "language": "typescript/nodejs"
  },
  "sdk": {
    "version": "13.5.0-preview.1.26310.1"
  },
  "channel": "daily"
}

Run:

aspire run --debug --non-interactive

Expected behavior

The TypeScript AppHost starts, or the CLI provides a clear actionable version-alignment/update path for the configured daily SDK.

Actual behavior

The command fails with exit code 2.

The installed Aspire CLI version (13.4.3) differs from the configured Aspire SDK version (13.5.0-preview.1.26310.1). If you run into errors, run 'aspire update' to align them.

Some types in assembly 'Aspire.Hosting.CodeGeneration.TypeScript' could not be loaded; 25 of 27 types are available. LoaderExceptions: Could not load file or assembly 'Aspire.TypeSystem, Version=13.5.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.

Assembly 'Aspire.Hosting.CodeGeneration.TypeScript' was loaded but did not contribute any ICodeGenerator implementations. This is likely caused by a binary mismatch between the bundled and probed assemblies (see preceding LoaderExceptions).

System.ArgumentException: No code generator found for language: TypeScript. No code generators were discovered in any loaded assembly. This usually indicates a binary mismatch between the bundled apphost server and the integration assemblies on disk; check the apphost server log for 'LoaderExceptions' Warnings.

Failed to run TypeScript (Node.js) AppHost: No code generator found for language: TypeScript. No code generators were discovered in any loaded assembly. This usually indicates a binary mismatch between the bundled apphost server and the integration assemblies on disk; check the apphost server log for 'LoaderExceptions' Warnings.

Environment

Aspire CLI: 13.4.3+4f218933552e18ff2874d1b6d5dc3fe671e3b6d9
Configured Aspire SDK: 13.5.0-preview.1.26310.1
AppHost language: typescript/nodejs
AppHost path: apphost.mts
Node.js: v22.20.0
npm: 10.9.3
OS: Darwin arm64

Notes

The debug log indicates the bundled apphost server is from the 13.4.3 CLI while the configured SDK/integration assemblies are from 13.5.0-preview.1.26310.1. The CLI update notifier reported no newer prerelease version available from the installed CLI.

Repro repository

https://github.com/mitchdenny/aspire-loves-terminals

Metadata

Metadata

Labels

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions