title: Chain pre-launch tasks in VS Code
body: <p>Is it possible to invoke more than one pre-launch task using VS Code?</p>
  
  <p>I try to restore packages then build then run but I can only get to configure build.</p>
  
  <p>My launch.json:</p>
  
  <pre><code>{
          "name": ".NET Core Launch (console)",
          "type": "coreclr",
          "request": "launch",
          "preLaunchTask": "build",
          "program": "${workspaceRoot}/src/myProject/bin/Debug/netcoreapp1.0/myProject.dll",
          "args": [],
          "cwd": "${workspaceRoot}/src/myProject",
          "stopAtEntry": false,
          "externalConsole": false
      },
  </code></pre>
  
  <p>My tasks.json:</p>
  
  <pre><code>{
  // See https://go.microsoft.com/fwlink/?LinkId=733558
  // for the documentation about the tasks.json format
  "version": "0.1.0",
  "command": "dotnet",
  "isShellCommand": true,
  "args": [],
  "tasks": [
      {
          "taskName": "build",
          "args": [
              "./**/project.json"
              ],
          "isBuildCommand": true,
          "showOutput": "always",
          "problemMatcher": "$msCompile"
      }
  ]
  </code></pre>
  
  <p>}</p>
  
  <p>so I tried to specify the <code>dotnet restore</code> command however it does not work.</p>