Aspire.Hosting.JavaScript
13.0.0
Prefix Reserved
dotnet add package Aspire.Hosting.JavaScript --version 13.0.0
NuGet\Install-Package Aspire.Hosting.JavaScript -Version 13.0.0
<PackageReference Include="Aspire.Hosting.JavaScript" Version="13.0.0" />
<PackageVersion Include="Aspire.Hosting.JavaScript" Version="13.0.0" />
<PackageReference Include="Aspire.Hosting.JavaScript" />
paket add Aspire.Hosting.JavaScript --version 13.0.0
#r "nuget: Aspire.Hosting.JavaScript, 13.0.0"
#:package Aspire.Hosting.JavaScript@13.0.0
#addin nuget:?package=Aspire.Hosting.JavaScript&version=13.0.0
#tool nuget:?package=Aspire.Hosting.JavaScript&version=13.0.0
Aspire.Hosting.JavaScript library
Provides extension methods and resource definitions for an Aspire AppHost to configure JavaScript projects.
Getting started
Install the package
In your AppHost project, install the Aspire JavaScript library with NuGet:
dotnet add package Aspire.Hosting.JavaScript
Usage example
Then, in the AppHost.cs file of AppHost, add a Or resource and consume the connection using the following methods:
var builder = DistributedApplication.CreateBuilder(args);
builder.AddJavaScriptApp("frontend", "../frontend", "app.js");
builder.Build().Run();
Additional documentation
https://github.com/dotnet/aspire-samples/tree/main/samples/AspireWithJavaScript https://github.com/dotnet/aspire-samples/tree/main/samples/AspireWithNode
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.Hosting (>= 13.0.0)
- AspNetCore.HealthChecks.Uris (>= 9.0.0)
- Google.Protobuf (>= 3.33.0)
- Grpc.AspNetCore (>= 2.71.0)
- Grpc.Net.ClientFactory (>= 2.71.0)
- Grpc.Tools (>= 2.72.0)
- Humanizer.Core (>= 2.14.1)
- JsonPatch.Net (>= 3.3.0)
- KubernetesClient (>= 18.0.5)
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 8.0.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 8.0.22)
- Microsoft.Extensions.Hosting (>= 8.0.1)
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.1)
- Microsoft.Extensions.Http (>= 8.0.1)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.3)
- Microsoft.Extensions.Options (>= 8.0.2)
- Microsoft.Extensions.Primitives (>= 8.0.0)
- Newtonsoft.Json (>= 13.0.4)
- Polly.Core (>= 8.6.4)
- Semver (>= 3.0.0)
- StreamJsonRpc (>= 2.22.23)
- System.IO.Hashing (>= 9.0.10)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Aspire.Hosting.JavaScript:
| Package | Downloads |
|---|---|
|
CommunityToolkit.Aspire.Hosting.McpInspector
An Aspire to run the MCP Inspector against a MCP server. |
|
|
CommunityToolkit.Aspire.Hosting.JavaScript.Extensions
A .NET Aspire for hosting NodeJS apps using Vite, Yarn, PNPM, or NPM. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 13.0.0 | 7,979 | 11/11/2025 |