the bot is now built before starting debuging

This commit is contained in:
Sarah Faey 2022-11-22 23:34:19 +01:00
parent 660eadfbe2
commit 7d6bc48dba
2 changed files with 25 additions and 1 deletions

2
.vscode/launch.json vendored
View file

@ -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": [],

24
.vscode/tasks.json vendored
View file

@ -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"
}
]
}