From b18fa4c15d8081383241ae7c080d8b339e7061fd Mon Sep 17 00:00:00 2001 From: Carl Sixsmith Date: Fri, 31 May 2024 11:31:53 +0100 Subject: [PATCH] Adding Tasks/Launch settings for vscode support. --- .vscode/launch.json | 36 ++++++++++++++++++++++++++++++++++++ .vscode/tasks.json | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000..26dcb317 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,36 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Launch Blazor Server App", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "Build (UI)", + "program": "${workspaceFolder}/src/Server.UI/bin/Debug/net8.0/Cfo.Cats.Server.UI.dll", + "args": [], + "cwd": "${workspaceFolder}/src/Server.UI/", + "stopAtEntry": false, + "serverReadyAction": { + "action": "openExternally", + "pattern": "\\bNow listening on:\\s+(https?://\\S+)" + }, + "env": { + "ASPNETCORE_ENVIRONMENT": "Development" + }, + "sourceFileMap": { + "/Views": "${workspaceFolder}/src/Server.UI/Views" + } + }, + { + "name": "Launch Build Console App", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "Build (Build Project)", + "program": "${workspaceFolder}/build/bin/Debug/net8.0/Build.dll", + "args": [], + "cwd": "${workspaceFolder}/build", + "stopAtEntry": false, + "console": "internalConsole" + } + ] +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 00000000..22399d9d --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,33 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "Build (UI)", + "command": "dotnet", + "type": "process", + "args": [ + "build", + "${workspaceFolder}/src/Server.UI/Server.UI.csproj" + ], + "problemMatcher": "$msCompile", + "group":{ + "kind": "build", + "isDefault": true + } + }, + { + "label": "Build (Build Project)", + "command": "dotnet", + "type": "process", + "args": [ + "build", + "${workspaceFolder}/build/Build.csproj" + ], + "problemMatcher": "$msCompile", + "group":{ + "kind": "build", + "isDefault": true + } + } + ] +} \ No newline at end of file