From 7d6bc48dba2018972e622e51e9db5563c4c4ef76 Mon Sep 17 00:00:00 2001 From: Sarah Faey Date: Tue, 22 Nov 2022 23:34:19 +0100 Subject: [PATCH] the bot is now built before starting debuging --- .vscode/launch.json | 2 +- .vscode/tasks.json | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index cd5c84b..3830ef2 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -33,7 +33,7 @@ "name": "DiscordBot", "type": "coreclr", "request": "launch", - "preLaunchTask": "build", + "preLaunchTask": "build-bot", // If you have changed target frameworks, make sure to update the program path. "program": "${workspaceFolder}/DiscordBot/bin/Debug/net6.0/DiscordBot.dll", "args": [], diff --git a/.vscode/tasks.json b/.vscode/tasks.json index e61705a..b8780a8 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -36,6 +36,30 @@ "${workspaceFolder}/Lieb/Lieb.csproj" ], "problemMatcher": "$msCompile" + }, + { + "label": "build-bot", + "command": "dotnet", + "type": "process", + "args": [ + "build", + "${workspaceFolder}/DiscordBot/DiscordBot.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "publish-bot", + "command": "dotnet", + "type": "process", + "args": [ + "publish", + "${workspaceFolder}/DiscordBot/DiscordBot.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" } ] } \ No newline at end of file