title: Could not find the preLaunch task 'build'
body: <p>To configure Visual Studio Code to debug C# scripts on OSX, I followed through all the steps listed in the article below: </p>
  
  <p><a href="http://blog.nwoolls.com/2015/05/29/debugging-c-on-os-x-with-visual-studio-code/">Debugging C# on OSX with Visual Studio Code</a></p>
  
  <p>When I tried to debug the sample C# script, Visual Studio Code reported this error:</p>
  
  <blockquote>
    <p>Could not find the preLaunch task 'build'</p>
  </blockquote>
  
  <p>As a consequence, I could not inspect the variables defined in the script.</p>
  
  <p>This is a copy of the <strong>launch.json</strong> file:</p>
  
  <pre><code>{
      "version": "0.2.0",
      "configurations": [
          {
              "name": "Launch console application",
              "type": "mono",
              "request": "launch",
              "preLaunchTask": "build",
              "program": "${workspaceRoot}/Program.exe",
              "args": [],
              "cwd": "${workspaceRoot}",
              "stopAtEntry": false
          }
      ]
  }
  </code></pre>
  
  <p>This is a copy of the <strong>tasks.json</strong> file:</p>
  
  <pre><code>{
      "version": "0.1.0",
      "command": "mcs",
      "args": [
          "-debug",
          "Program.cs"
      ],  
      "showOutput": "silent",
      "taskSelector": "/t:",
      "tasks": [
          {
              "taskName": "exe",
              "isBuildCommand": true,
              "problemMatcher": "$msCompile"
          }
      ]
  }
  </code></pre>
  
  <p>How do I resolve this?</p>