C3D.Extensions.Aspire.Node
0.1.2
dotnet add package C3D.Extensions.Aspire.Node --version 0.1.2
NuGet\Install-Package C3D.Extensions.Aspire.Node -Version 0.1.2
<PackageReference Include="C3D.Extensions.Aspire.Node" Version="0.1.2" />
<PackageVersion Include="C3D.Extensions.Aspire.Node" Version="0.1.2" />
<PackageReference Include="C3D.Extensions.Aspire.Node" />
paket add C3D.Extensions.Aspire.Node --version 0.1.2
#r "nuget: C3D.Extensions.Aspire.Node, 0.1.2"
#:package C3D.Extensions.Aspire.Node@0.1.2
#addin nuget:?package=C3D.Extensions.Aspire.Node&version=0.1.2
#tool nuget:?package=C3D.Extensions.Aspire.Node&version=0.1.2
C3D.Extensions.Aspire.Node
A way to reference and execute an Node based project (.eproj) using Aspire. Connects to the instance of VisualStudio running the AprireHost and attaches the debugger to the Node instance so that the project can be debugged as normal. Adds a healthcheck to the Node resource to show whether the debugger has been attached. A future option would be to send the initial request to spin up the site once the debugger is attached.
Utilizes C3D.Extensions.Aspire.OutputWatcher under the hood to watch for debug connection strings in the output.
Example
var webapp = builder.AddNodeApp<Projects.ExpressProject>("webapp")
.WithHttpEndpoint(env: "PORT")
.WithOtlpExporter()
.WithWatch()
.WithDebugger()
.WithHttpHealthCheck("/alive");
Methods
AddNodeApp<T>Adds a referenced project as a Node app. Uses the project directory to launch node.WithWatch()Injects the--watchoption in the node argumentsWithDebugger()Sets up the logic to attach the debugger using the V8 Inspection protocol and watch for the debugger connection string.
Known Issues
- This doesn't work with npm at the moment, as the debugger options get confused between the npm runner and it's child processes.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows7.0 is compatible. net9.0-windows was computed. net9.0-windows7.0 is compatible. net10.0-windows was computed. net10.0-windows7.0 is compatible. |
-
net10.0-windows7.0
- Aspire.Hosting.JavaScript (>= 13.1.0)
- C3D.Extensions.Aspire.OutputWatcher (>= 0.1.19)
- C3D.Extensions.Aspire.VisualStudioDebug (>= 0.1.45)
-
net8.0-windows7.0
- Aspire.Hosting.JavaScript (>= 13.1.0)
- C3D.Extensions.Aspire.OutputWatcher (>= 0.1.19)
- C3D.Extensions.Aspire.VisualStudioDebug (>= 0.1.45)
-
net9.0-windows7.0
- Aspire.Hosting.JavaScript (>= 13.1.0)
- C3D.Extensions.Aspire.OutputWatcher (>= 0.1.19)
- C3D.Extensions.Aspire.VisualStudioDebug (>= 0.1.45)
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 |
|---|---|---|
| 0.1.2 | 79 | 2/10/2026 |