Aspire for Visual Studio CodeThe official Aspire extension for VS Code. Run, debug, and deploy your Aspire apps without leaving the editor, with debugging support for C#, Python, Node.js, Go, and more. Aspire helps you build distributed apps — microservices, databases, containers, frontends, and any complex application topology — by providing declarative APIs to wire your resources together in code. Getting StartedOpen your Aspire project in VS Code, or create one with Aspire: New Aspire project from the Command Palette. Run Aspire: Configure launch.json file to set up the debug configuration, then press F5. The Aspire extension will build your apphost, start your services, attach debuggers, and print the dashboard URL. Open the dashboard from the Aspire panel when you need it, or opt into auto-launch with the There's also a built-in walkthrough at Help → Get Started → Get started with Aspire that covers the basics step by step. The core flow is:
Learn more in the Aspire VS Code extension documentation. Running and DebuggingLaunch configurationAdd an entry to
When you hit F5, the extension builds the apphost, starts all the resources (services, containers, databases) in the right order, hooks up debuggers based on each service's language, and prints the dashboard URL. You can also right-click an AppHost file in the Explorer and pick Run Aspire apphost or Debug Aspire apphost.
Deploy, publish, and pipeline stepsThe
Customizing debugger settings per languageThe
The Aspire PanelThe extension adds an Aspire panel to the Activity Bar. It shows a live tree of your resources. In Workspace mode you see resources from the apphost in your current workspace, updating in real time. Switch to Global mode with the toggle in the panel header to see every running apphost on your machine. Right-click a resource to start, stop, or restart it, view its logs, run resource-specific commands, or open the dashboard.
The Aspire DashboardThe dashboard gives you a live view of your running app — all your resources and their health, endpoint URLs, console logs from every service, structured logs (via OpenTelemetry), distributed traces across services, and metrics. By default, the dashboard URL is printed to the debug console when your app starts and stays available from the Aspire panel.
Chat Tools for AgentsThe extension contributes two Language Model tools so chat agents start and stop your apphost through the same lifecycle operations as the Aspire view: When VS Code is active, agents should prefer these editor operations over running Aspire AppHost lifecycle commands in a terminal.
Both tools take the workspace-relative path of an apphost Aspire has already discovered — the same list the Aspire view shows — and resolve it against that list rather than against your filesystem. An agent can only name an apphost Aspire found, so it cannot point these tools at an arbitrary file, and the path shown in the confirmation is that discovered apphost's own path rather than anything the agent supplied. Absolute paths are rejected; in a multi-root workspace, always prefix the path with the workspace folder name. Both tools ask a chat agent's user to confirm before doing anything, and only work in a trusted workspace. They never pick an apphost for you: a path that names no discovered apphost, or more than one, fails and reports back the apphosts you can name. Starting an apphost that is already starting or running does not launch a second one. Stopping an editor-created apphost coordinates its Aspire debug session; stopping an apphost started from a terminal delegates to Language and Debugger SupportThe extension figures out what language each resource uses and attaches the right debugger. Some languages need a companion extension:
Feedback and IssuesFound a bug or have an idea? File it on the microsoft/aspire repo: ContributingSee CONTRIBUTING.md for setup, project layout, the extension-only inner loop, and running tests. Good first issues are tagged Learn moreLicenseSee LICENSE.TXT for details. |


