IDE: launch.json starts the full stack via Aspire AppHost from the VS Code play button

This commit is contained in:
2026-06-06 00:11:32 +02:00
parent 16d3cefe68
commit 5ef27a70d3

74
.vscode/launch.json vendored
View File

@@ -1,42 +1,32 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (web)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/GerbilManagerWebAPI/bin/Debug/net7.0/GerbilManagerWebAPI.dll",
"args": [],
"cwd": "${workspaceFolder}/GerbilManagerWebAPI",
"stopAtEntry": false,
"serverReadyAction": {
"action": "openExternally",
"pattern": "\\bNow listening on:\\s+(https?://\\S+)"
},
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"sourceFileMap": {
"/Views": "${workspaceFolder}/GerbilManagerWebAPI/Views"
}
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach"
},
{
"name": "Docker .NET Launch",
"type": "docker",
"request": "launch",
"preLaunchTask": "docker-run: debug",
"netCore": {
"appProject": "${workspaceFolder}/GerbilManagerWebAPI/GerbilManagerWebAPI.csproj"
}
}
]
}
{
// Play button (F5) starts the WHOLE stack via .NET Aspire:
// dashboard + Postgres container + WebAPI + React frontend (Vite).
// The Aspire dashboard (with login token) opens automatically.
"version": "0.2.0",
"configurations": [
{
"name": "GerbilManager (Aspire — alles starten)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/GerbilManager.AppHost/bin/Debug/net10.0/GerbilManager.AppHost.dll",
"args": [],
"cwd": "${workspaceFolder}/GerbilManager.AppHost",
"stopAtEntry": false,
"env": {
"ASPNETCORE_ENVIRONMENT": "Development",
"DOTNET_ENVIRONMENT": "Development"
},
"serverReadyAction": {
"action": "openExternally",
"pattern": "Login to the dashboard at\\s+(https?://\\S+)",
"uriFormat": "%s"
}
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach"
}
]
}