Check in launch scripts for config and run

This can cause an issue with existing launch configuration on the machines of contributors.
This commit is contained in:
Ferenc Hammerl
2021-05-25 15:03:02 +02:00
parent ecb5ff36cf
commit 59064d8140
2 changed files with 106 additions and 0 deletions

59
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,59 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Deploy and Configure",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "deploy to _layout",
"program": "${workspaceFolder}/_layout/bin/Runner.Listener",
"args": ["configure"],
"cwd": "${workspaceFolder}/src",
"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",
"console": "integratedTerminal",
"requireExactSource": false,
},
{
"name": "Run",
"type": "coreclr",
"request": "launch",
"program": "${workspaceFolder}/_layout/bin/Runner.Listener",
"args": ["run"],
"cwd": "${workspaceFolder}/src",
"stopAtEntry": true,
"console": "integratedTerminal",
"requireExactSource": false,
},
{
"name": "Configure",
"type": "coreclr",
"request": "launch",
"program": "${workspaceFolder}/_layout/bin/Runner.Listener",
"args": ["configure"],
"cwd": "${workspaceFolder}/src",
"stopAtEntry": true,
"console": "integratedTerminal",
"requireExactSource": false,
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickProcess}",
"requireExactSource": false,
},
],
}

47
.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,47 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build listener",
"command": "dotnet",
"type": "process",
"args": [
"msbuild",
"-t:Build",
"-p:PackageRuntime=\"osx-x64\"",
"-p:BUILDCONFIG=\"Debug\"",
"-p:RunnerVersion=\"2.278.0\"",
"./dir.proj",
],
"options": {
"cwd": "${workspaceFolder}/src"
},
"problemMatcher": "$msCompile",
},
{
"label": "deploy to _layout",
"detail": "Build and Deploy all projects, scripts and external dependencies to _layout from src (run this the first time or after deleting _layout)",
"command": "./dev.sh",
"windows": {
"command": "dev.cmd"
},
"args": ["layout"],
"options": {
"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"
},
}
],
}