diff --git a/.gitignore b/.gitignore index 9b8178a..98ed4e6 100644 --- a/.gitignore +++ b/.gitignore @@ -372,4 +372,5 @@ FodyWeavers.xsd /DiscordBot/Data/ /DiscordBot/Updater/ .idea/ -/DiscordBotWeb/ \ No newline at end of file +/DiscordBotWeb/ +DiscordBot/Launcher.exe diff --git a/.vscode/launch.json b/.vscode/launch.json index e4187c3..303eba1 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,6 +1,27 @@ { "version": "0.2.0", "configurations": [ + { + "name": ".NET Core Watch (web)", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "watch", + "program": "${workspaceFolder}/DiscordBotPlugins/DiscordBotUI/bin/Debug/net6.0/DiscordBotUI.dll", + "args": [], + "cwd": "${workspaceFolder}/DiscordBotPlugins/DiscordBotUI/bin/Debug/net6.0", + "stopAtEntry": false, + "console": "externalTerminal", + "serverReadyAction": { + "action": "openExternally", + "pattern": "\\bNow listening on:\\s+(https?://\\S+)" + }, + "env": { + "ASPNETCORE_ENVIRONMENT": "Development" + }, + "sourceFileMap": { + "/Views": "${workspaceFolder}/Views" + } + }, { "name": ".NET Core Launch (web)", "type": "coreclr", diff --git a/.vscode/tasks.json b/.vscode/tasks.json index ce0ba5d..f72e550 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -1,6 +1,34 @@ { "version": "2.0.0", "tasks": [ + { + "label": "watch", + "command": "dotnet", + "type": "process", + "args": [ + "watch", + "run", + "--project", + "${workspaceFolder}/DiscordBotPlugins/DiscordBotUI/DiscordBotUI.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile", + "options": { + "cwd": "${workspaceFolder}/DiscordBotPlugins/DiscordBotUI/bin/Debug/net6.0", + "env": { + "ASPNETCORE_ENVIRONMENT": "Development" + }, + "sourceFileMap": { + "/Views": "${workspaceFolder}/Views" + }, + "serverReadyAction": { + "action": "openExternally", + "pattern": "\\bNow listening on:\\s+(https?://\\S+)" + }, + "console": "externalTerminal" + } + }, { "label": "build", "command": "dotnet", @@ -36,18 +64,6 @@ "/consoleloggerparameters:NoSummary" ], "problemMatcher": "$msCompile" - }, - { - "label": "watch", - "command": "dotnet", - "type": "process", - "args": [ - "watch", - "run", - "--project", - "${workspaceFolder}/DiscordBot/DiscordBot.csproj" - ], - "problemMatcher": "$msCompile" } ] } \ No newline at end of file