Aspire.Hosting.CodeGeneration.TypeScript
13.6.1
Prefix Reserved
dotnet add package Aspire.Hosting.CodeGeneration.TypeScript --version 13.6.1
NuGet\Install-Package Aspire.Hosting.CodeGeneration.TypeScript -Version 13.6.1
<PackageReference Include="Aspire.Hosting.CodeGeneration.TypeScript" Version="13.6.1" />
<PackageVersion Include="Aspire.Hosting.CodeGeneration.TypeScript" Version="13.6.1" />
<PackageReference Include="Aspire.Hosting.CodeGeneration.TypeScript" />
paket add Aspire.Hosting.CodeGeneration.TypeScript --version 13.6.1
#r "nuget: Aspire.Hosting.CodeGeneration.TypeScript, 13.6.1"
#:package Aspire.Hosting.CodeGeneration.TypeScript@13.6.1
#addin nuget:?package=Aspire.Hosting.CodeGeneration.TypeScript&version=13.6.1
#tool nuget:?package=Aspire.Hosting.CodeGeneration.TypeScript&version=13.6.1
Aspire.Hosting.CodeGeneration.TypeScript
Provides TypeScript AppHost scaffolding and generates typed bindings for Aspire hosting APIs. This is tooling for writing the AppHost in TypeScript, not an integration for hosting a JavaScript or TypeScript application.
Getting started
Install the Aspire CLI and a supported Node.js runtime and package manager. From your application directory, initialize a TypeScript AppHost:
aspire init --language typescript
The CLI scaffolds apphost.mts and automatically restores this code-generation
package. Do not install it with aspire add. When the application already has a
root package.json, the AppHost is created in a nested aspire-apphost/ package.
Edit the scaffolded apphost.mts, which imports the generated SDK:
import { createBuilder } from './.aspire/modules/aspire.mjs';
const builder = await createBuilder();
await builder.build().run();
Generated bindings
The SDK in .aspire/modules/ is generated from Aspire Type System (ATS) metadata
in Aspire.Hosting and the hosting integrations configured in aspire.config.json.
It supplies the typed API used by your AppHost and calls the .NET AppHost server
through JSON-RPC.
Run aspire restore from the AppHost directory to regenerate bindings without
starting the AppHost. Use aspire run to run it. Do not edit .aspire/modules/;
change your AppHost or integration references instead.
Additional documentation
- https://aspire.dev/integrations/gallery/
- https://aspire.dev/app-host/typescript-apphost/
- https://aspire.dev/reference/cli/commands/aspire-restore/
- https://aspire.dev/extensibility/multi-language-integration-authoring/
Feedback & contributing
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Aspire.TypeSystem (>= 13.6.1)
- Microsoft.Extensions.Primitives (>= 10.0.12)
- Semver (>= 3.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 13.6.1 | 1,086 | 10/7/2026 |
| 13.6.0 | 9,845 | 9/29/2026 |
| 13.5.4 | 8,209 | 9/15/2026 |
| 13.5.3 | 15,575 | 8/25/2026 |
| 13.5.2 | 3,903 | 8/21/2026 |
| 13.5.1 | 795 | 8/20/2026 |
| 13.5.0 | 14,159 | 8/18/2026 |
| 13.4.6 | 18,832 | 6/19/2026 |
| 13.4.5 | 1,209 | 6/17/2026 |
| 13.4.4 | 778 | 6/15/2026 |
| 13.4.3 | 14,767 | 6/8/2026 |
| 13.4.2 | 2,266 | 6/3/2026 |
| 13.4.1 | 152 | 6/3/2026 |
| 13.4.0 | 2,455 | 6/1/2026 |
| 13.3.5 | 1,795 | 5/21/2026 |
| 13.3.4 | 758 | 5/19/2026 |
| 13.3.3 | 1,203 | 5/15/2026 |
| 13.3.2 | 611 | 5/14/2026 |
| 13.3.1 | 937 | 5/12/2026 |
| 13.3.0 | 7,054 | 5/7/2026 |