From d2a406052128b6ff0bfc3246c5c0ba1065fc77d5 Mon Sep 17 00:00:00 2001 From: "Alice \"Arimah\" Heurlin" <30327355+arimah@users.noreply.github.com> Date: Mon, 15 Jul 2024 22:51:46 +0200 Subject: [PATCH] Add 'Client/Server (Release)' build for VSCode (#1678) --- .vscode/launch.json | 12 +++++++++++- .vscode/tasks.json | 20 ++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 5390b914093..ef75c5b0f9e 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -50,6 +50,16 @@ "Client" ], "preLaunchTask": "build" + }, + // Frontier begin + { + "name": "Server/Client (Release)", + "configurations": [ + "Server", + "Client" + ], + "preLaunchTask": "build-release" } + // Frontier end ] -} \ No newline at end of file +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 9c9cb42cd0d..081a765b321 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -21,6 +21,26 @@ }, "problemMatcher": "$msCompile" }, + // Frontier begin + { + "label": "build-release", + "command": "dotnet", + "type": "shell", + "args": [ + "build", + "--configuration=Release", // Build in release mode. Note: --, not /. /configuration doesn't work, because Microsoft. + "/property:GenerateFullPaths=true", // Ask dotnet build to generate full paths for file names. + "/consoleloggerparameters:NoSummary" // Do not generate summary otherwise it leads to duplicate errors in Problems panel + ], + "group": { + "kind": "build" + }, + "presentation": { + "reveal": "silent" + }, + "problemMatcher": "$msCompile" + }, + // Frontier end { "label": "build-yaml-linter", "command": "dotnet",