Skip to content

Commit

Permalink
chore: 設定 vscode server 執行環境
Browse files Browse the repository at this point in the history
  • Loading branch information
aa89227 committed Aug 22, 2024
1 parent e843f92 commit 3523eb6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 9 deletions.
17 changes: 10 additions & 7 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
]
}
16 changes: 14 additions & 2 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
],
Expand Down

0 comments on commit 3523eb6

Please sign in to comment.