title: How to define several typescript compile tasks in one tasks.json?
body: <p>I am trying to define different build tasks for my typescript project in VS Code. My tasks.json works as long as there is only one task. </p>
  
  <p>tasks.json (command pallette > task tsc)</p>
  
  <pre><code>{
  "version": "0.1.0",
  "command": "tsc",
  "showOutput": "silent",
  "args": ["-p", "."],
  "problemMatcher": "$tsc"
  "isShellCommand": true
  }
  </code></pre>
  
  <p>When I define several tasks, I can select them from the command palette, but they generate the following error:</p>
  
  <p><em>TS5042: Option 'project' cannot be mixed with source files on a command line</em></p>
  
  <p>tasks.json (command pallette > task dosomething)</p>
  
  <pre><code>{
  "version": "0.1.0",
  "command": "tsc",
  "isShellCommand": true,
  "tasks":[
      {
          "taskName":"dosomething",
          "showOutput": "silent",
          "args": ["-p", "."],
          "problemMatcher": "$tsc"
      },
      {
          "taskName":"compileandwatch",
          "showOutput": "silent",
          "args": ["-p", ".", "-w"],
          "problemMatcher": "$tsc"
      }
  ]
  }
  </code></pre>
  
  <p>Question: how to define several tasks in tasks.json? Which parameters should be included in "tasks" and which should be in the root? There is no example in the <a href="https://code.visualstudio.com/Docs/languages/typescript" rel="nofollow">microsoft docs</a>.</p>
  
  <p>I tried leaving "args" empty:</p>
  
  <pre><code>"args": [],
  </code></pre>
  
  <p>But then I get this error <strong>"dosomething.ts"</strong> not found</p>