title: Lauching dotnet fails ("dotnet" is not a file of a symlink)
body: <p>The default vscode configuration for debugging ASP.NET core contains the following:</p>
  <pre class="lang-json prettyprint-override"><code>&quot;configurations&quot;: [
  {
      &quot;name&quot;: &quot;.NET Core Launch (web)&quot;,
      &quot;type&quot;: &quot;coreclr&quot;,
      &quot;request&quot;: &quot;launch&quot;,
      &quot;preLaunchTask&quot;: &quot;build&quot;,
      ...
  </code></pre>
  <p>The <code>preLaunchTask</code> fails for me with the following error:</p>
  <pre><code>The terminal process failed to launch: Path to shell executable &quot;dotnet&quot; is not a file of a symlink.
  </code></pre>
  <p>I have had this problem before, not on the <code>preLaunchTask</code> but on the main program execution. That I could work around by doing a replace all <code>&quot;dotnet&quot;</code> -&gt; <code>&quot;/usr/bin/dotnet&quot;</code> in <code>~/.vscode/extensions/ms-dotnettools.csharp-1.**.*/dist/extensions.js</code> + a vscode restart. However, this workaround doesn't work for the <code>preLaunchTask</code>. (And having to do this for every update of that extension in annoying).</p>
  <p>Given that I'm a linux noob, it's probably not omnisharp/vscode related but could be something I did wrong in Ubuntu 18.04.</p>
  <p>Does anybody know what the error means, and how to fix it? Or even how to debug this problem?</p>
  <p>I've already reinstalled vscode, .net5, and my global <code>$PATH</code> env does contain <code>/home/&lt;username&gt;/.dotnet/tools:/usr/bin/dotnet</code>. Other than that I don't know what to do.</p>