Rename tasks and run configs

This commit is contained in:
Ferenc Hammerl
2021-05-26 16:27:22 +02:00
parent 7db191ee71
commit 695b75c3fe
2 changed files with 30 additions and 48 deletions

34
.vscode/launch.json vendored
View File

@@ -5,23 +5,14 @@
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
{ {
"name": "Deploy and Configure", "name": "Run [build]",
"type": "coreclr", "type": "coreclr",
"request": "launch", "request": "launch",
"preLaunchTask": "deploy to _layout", "preLaunchTask": "build runner layout",
"program": "${workspaceFolder}/_layout/bin/Runner.Listener", "program": "${workspaceFolder}/_layout/bin/Runner.Listener",
"args": ["configure"], "args": [
"cwd": "${workspaceFolder}/src", "run"
"console": "integratedTerminal", ],
"requireExactSource": false,
},
{
"name": "Build and Run",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build to _layout",
"program": "${workspaceFolder}/_layout/bin/Runner.Listener",
"args": ["run"],
"cwd": "${workspaceFolder}/src", "cwd": "${workspaceFolder}/src",
"console": "integratedTerminal", "console": "integratedTerminal",
"requireExactSource": false, "requireExactSource": false,
@@ -31,21 +22,26 @@
"type": "coreclr", "type": "coreclr",
"request": "launch", "request": "launch",
"program": "${workspaceFolder}/_layout/bin/Runner.Listener", "program": "${workspaceFolder}/_layout/bin/Runner.Listener",
"args": ["run"], "args": [
"run"
],
"cwd": "${workspaceFolder}/src", "cwd": "${workspaceFolder}/src",
"console": "integratedTerminal", "console": "integratedTerminal",
"requireExactSource": false, "requireExactSource": false,
}, },
{ {
"name": "Configure", "name": "Configure",
"type": "coreclr", "type": "coreclr",
"request": "launch", "request": "launch",
"preLaunchTask": "create runner layout",
"program": "${workspaceFolder}/_layout/bin/Runner.Listener", "program": "${workspaceFolder}/_layout/bin/Runner.Listener",
"args": ["configure"], "args": [
"configure"
],
"cwd": "${workspaceFolder}/src", "cwd": "${workspaceFolder}/src",
"console": "integratedTerminal", "console": "integratedTerminal",
"requireExactSource": false, "requireExactSource": false,
}, },
{ {
"name": ".NET Core Attach", "name": ".NET Core Attach",
"type": "coreclr", "type": "coreclr",
@@ -54,4 +50,4 @@
"requireExactSource": false, "requireExactSource": false,
}, },
], ],
} }

44
.vscode/tasks.json vendored
View File

@@ -2,46 +2,32 @@
"version": "2.0.0", "version": "2.0.0",
"tasks": [ "tasks": [
{ {
"label": "build listener", "label": "create runner layout",
"command": "dotnet", "detail": "Build and Copy all projects, scripts and external dependencies to _layout from src (run this the first time or after deleting _layout)",
"type": "process", "command": "./dev.sh",
"windows": {
"command": "dev.cmd"
},
"args": [ "args": [
"msbuild", "layout"
"-t:Build",
"-p:PackageRuntime=\"osx-x64\"",
"-p:BUILDCONFIG=\"Debug\"",
"-p:RunnerVersion=\"2.278.0\"",
"./dir.proj",
], ],
"options": { "options": {
"cwd": "${workspaceFolder}/src" "cwd": "${workspaceFolder}/src"
}, },
"problemMatcher": "$msCompile",
}, },
{ {
"label": "deploy to _layout", "label": "build runner layout",
"detail": "Build and Deploy all projects, scripts and external dependencies to _layout from src (run this the first time or after deleting _layout)", "detail": "Build and Copy all projects to _layout from src (run this on code change)",
"command": "./dev.sh", "command": "./dev.sh",
"windows": { "windows": {
"command": "dev.cmd" "command": "dev.cmd"
}, },
"args": ["layout"], "args": [
"build"
],
"options": { "options": {
"cwd": "${workspaceFolder}/src" "cwd": "${workspaceFolder}/src"
},
},
{
"label": "build to _layout",
"detail": "Build and Deploy all projects to _layout from src (run this on code change)",
"command": "./dev.sh",
"windows": {
"command": "dev.cmd"
},
"args": ["build"],
"options": {
"cwd": "${workspaceFolder}/src"
}, },
} }
], ],
} }