From 3523eb639767be41f08fb767759d231fec77835f Mon Sep 17 00:00:00 2001 From: aa89227 Date: Thu, 22 Aug 2024 22:15:01 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E8=A8=AD=E5=AE=9A=20vscode=20server?= =?UTF-8?q?=20=E5=9F=B7=E8=A1=8C=E7=92=B0=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/launch.json | 17 ++++++++++------- .vscode/tasks.json | 16 ++++++++++++++-- 2 files changed, 24 insertions(+), 9 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 64932e3..0a82b0b 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,22 +5,25 @@ // Use IntelliSense to find out which attributes exist for C# debugging // Use hover for the description of the existing attributes // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md - "name": ".NET Core Launch (console)", + "name": "Debug Server", "type": "coreclr", "request": "launch", - "preLaunchTask": "build", + "preLaunchTask": "build server", // If you have changed target frameworks, make sure to update the program path. - "program": "${workspaceFolder}/Test/Shared/bin/Debug/net7.0/SharedTests.dll", + "program": "${workspaceFolder}/InterfaceAdapterLayer/Monopoly.InterfaceAdapterLayer.Server/bin/Debug/net8.0/Monopoly.InterfaceAdapterLayer.Server.dll", "args": [], - "cwd": "${workspaceFolder}/Test/Shared", + "cwd": "${workspaceFolder}/InterfaceAdapterLayer/Monopoly.InterfaceAdapterLayer.Server", // For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console "console": "internalConsole", "stopAtEntry": false }, { - "name": ".NET Core Attach", - "type": "coreclr", - "request": "attach" + "name": "Debug Client", + "type": "blazorwasm", + "request": "launch", + "preLaunchTask": "build client", + // "program": "${workspaceFolder}/Clients/Monopoly.Clients.Web/bin/Debug/net8.0/Monopoly.Clients.Web.dll", + "cwd": "${workspaceFolder}/Clients/Monopoly.Clients.Web", } ] } \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json index d592cbb..e94e0c1 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -2,12 +2,24 @@ "version": "2.0.0", "tasks": [ { - "label": "build", + "label": "build server", "command": "dotnet", "type": "process", "args": [ "build", - "${workspaceFolder}/Test/Shared/SharedTests.csproj", + "${workspaceFolder}/InterfaceAdapterLayer/Monopoly.InterfaceAdapterLayer.Server/Monopoly.InterfaceAdapterLayer.Server.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "build client", + "command": "dotnet", + "type": "process", + "args": [ + "build", + "${workspaceFolder}/Clients/Monopoly.Clients.Web/Monopoly.Clients.Web.csproj", "/property:GenerateFullPaths=true", "/consoleloggerparameters:NoSummary" ],