title: Simple dotnetcore app not running in VS Code
body: <p>I tried to follow the instructions here: <a href="https://docs.microsoft.com/en-us/aspnet/core/tutorials/web-api-vsc" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/aspnet/core/tutorials/web-api-vsc</a></p>
  
  <p>I did:</p>
  
  <pre><code>mkdir todoapi
  cd todoapi
  dotnet new webapi
  </code></pre>
  
  <p>When I opened Startup.cs in VS Code, I didn't get any warn message asking me the following:</p>
  
  <pre><code>Select Yes to the Warn message "Required assets to build and debug are missing from 'TodoApi'. Add them?"
  Select Restore to the Info message "There are unresolved dependencies".
  </code></pre>
  
  <p>What is wrong with my local setup?</p>
  
  <p>I just want to run this program from withi VS code.</p>
  
  <p>If I run in debug mode I get this error:</p>
  
  <pre><code>The preLaunchTask 'build' terminated with exit code 1.
  </code></pre>
  
  <p>In the powershell terminal the command 'dotnet' doesn't work either. Should it?</p>
  
  <p><b>Update</b></p>
  
  <p>I re-started VS COde and now it picks up the command in terminal:
  dotnet</p>
  
  <p>Now when I run I get this:</p>
  
  <blockquote>
    <p>launch: launch.json must be configured. Change 'program' to the path
    to the executable file that you would like to debug.</p>
  </blockquote>
  
  <p>My launch.json has:</p>
  
  <pre><code>"configurations": [
  
          {
              "name": ".NET Core Launch (console)",
              "type": "coreclr",
              "request": "launch",
              "preLaunchTask": "build",
              "program": "${workspaceRoot}/bin/Debug/&lt;target-framework&gt;/&lt;project-name.dll&gt;",
              "args": [],
              "cwd": "${workspaceRoot}",
              "stopAtEntry": false,
              "console": "internalConsole"
          },
          {
              "name": ".NET Core Launch (web)",
              "type": "coreclr",
              "request": "launch",
              "preLaunchTask": "build",
              "program": "${workspaceRoot}/bin/Debug/&lt;target-framework&gt;/&lt;project-name.dll&gt;",
              "args": [],
              "cwd": "${workspaceRoot}",
              "stopAtEntry": false,
              "launchBrowser": {
                  "enabled": true,
                  "args": "${auto-detect-url}",
                  "windows": {
                      "command": "cmd.exe",
                      "args": "/C start ${auto-detect-url}"
                  },
                  "osx": {
                      "command": "open"
                  },
                  "linux": {
                      "command": "xdg-open"
                  }
              },
              "env": {
                  "ASPNETCORE_ENVIRONMENT": "Development"
              },
              "sourceFileMap": {
                  "/Views": "${workspaceRoot}/Views"
              }
          },
  </code></pre>