chore: updated launch & tasks json files for better cross-platform development
This commit is contained in:
parent
9bf6cabe23
commit
b641ebde08
25
.vscode/launch.json
vendored
25
.vscode/launch.json
vendored
@ -5,8 +5,8 @@
|
||||
"name": ".NET Launch (Client) 1",
|
||||
"type": "coreclr",
|
||||
"request": "launch",
|
||||
"preLaunchTask": "build",
|
||||
"program": "${workspaceFolder}/Platforms/Desktop/bin/Debug/net9.0/Desktop",
|
||||
"preLaunchTask": "build-client",
|
||||
"program": "${workspaceFolder}/Platforms/Desktop/bin/Debug/net9.0/Desktop.dll",
|
||||
"args": [],
|
||||
"cwd": "${workspaceFolder}",
|
||||
"stopAtEntry": false,
|
||||
@ -16,8 +16,8 @@
|
||||
"name": ".NET Launch (Client) 2",
|
||||
"type": "coreclr",
|
||||
"request": "launch",
|
||||
"preLaunchTask": "build",
|
||||
"program": "${workspaceFolder}/Platforms/Desktop/bin/Debug/net9.0/Desktop",
|
||||
"preLaunchTask": "build-client",
|
||||
"program": "${workspaceFolder}/Platforms/Desktop/bin/Debug/net9.0/Desktop.dll",
|
||||
"args": [],
|
||||
"cwd": "${workspaceFolder}",
|
||||
"stopAtEntry": false,
|
||||
@ -27,9 +27,12 @@
|
||||
"name": ".NET Launch (Server)",
|
||||
"type": "coreclr",
|
||||
"request": "launch",
|
||||
"preLaunchTask": "build",
|
||||
"program": "${workspaceFolder}/Platforms/Server/bin/Debug/net9.0/Server",
|
||||
"preLaunchTask": "build-server",
|
||||
"program": "${workspaceFolder}/Platforms/Server/bin/Debug/net9.0/Server.dll",
|
||||
"args": [],
|
||||
"env": {
|
||||
"PORT": "8888",
|
||||
},
|
||||
"cwd": "${workspaceFolder}",
|
||||
"stopAtEntry": false,
|
||||
"console": "internalConsole"
|
||||
@ -38,7 +41,10 @@
|
||||
"compounds": [
|
||||
{
|
||||
"name": ".NET Launch Client & Server",
|
||||
"configurations": [".NET Launch (Server)", ".NET Launch (Client) 1"]
|
||||
"configurations": [
|
||||
".NET Launch (Server)",
|
||||
".NET Launch (Client) 1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": ".NET Launch 2 Client & 1 Server",
|
||||
@ -50,7 +56,10 @@
|
||||
},
|
||||
{
|
||||
"name": ".NET Launch 2 Clients",
|
||||
"configurations": [".NET Launch (Client) 1", ".NET Launch (Client) 2"]
|
||||
"configurations": [
|
||||
".NET Launch (Client) 1",
|
||||
".NET Launch (Client) 2"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
27
.vscode/tasks.json
vendored
27
.vscode/tasks.json
vendored
@ -2,13 +2,32 @@
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "build-client",
|
||||
"command": "dotnet",
|
||||
"type": "process",
|
||||
"args": [
|
||||
"build"
|
||||
"build",
|
||||
"${workspaceFolder}/Platforms/Desktop"
|
||||
],
|
||||
"group": "build",
|
||||
"problemMatcher": [],
|
||||
"label": "build"
|
||||
"problemMatcher": "$msCompile",
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "build-server",
|
||||
"command": "dotnet",
|
||||
"type": "process",
|
||||
"args": [
|
||||
"build",
|
||||
"${workspaceFolder}/Platforms/Server"
|
||||
],
|
||||
"problemMatcher": "$msCompile",
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user