title: Visual Studio Code C# Debugging Problem (The terminal process failed to launch: Path to shell executable "dotnet" is not a file of a symlink.)
body: <p>I created a workspace using <code>dotnet new console</code>, wrote some code. But when I try to start debugging it using the option Run/Start debugging in visual studio code, it fails with the message:</p>
  <blockquote>
  <p>Executing task: dotnet build /home/MY USERNAME/Desktop/Codes/C#/Console/Console.csproj /property:GenerateFullPaths=true /consoleloggerparameters:NoSummary<br />
  The terminal process failed to launch: Path to shell executable &quot;dotnet&quot; is not a file of a symlink.<br />
  Terminal will be reused by tasks, press any key to close it.</p>
  </blockquote>
  <p>Using the <code>dotnet run</code> command in terminal works fine without any problems. But using the start debugging option fails for some reason. I really don't want to have to type this command every time I want to start the program.</p>
  <p>Here is the result of <code>dotnet --info</code> command:</p>
  <pre><code>.NET Core SDK (reflects global.json if exists):\
   Version:   3.1.302\
   Commit:    41faccf259
  
  Runtime Environment:\
   OS Name:     ubuntu\
   OS Version:  20.04\
   OS Platform: Linux\
   RID:         linux-x64\
   Base Path:   /usr/share/dotnet/sdk/3.1.302/
  
  Host (useful for support):\
    Version: 3.1.6\
    Commit:  3acd9b0cd1
  
  .NET Core SDKs installed:\
    3.1.302 [/usr/share/dotnet/sdk]
  
  .NET Core runtimes installed:\
    Microsoft.AspNetCore.App 3.1.6 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]\
    Microsoft.NETCore.App 3.1.6 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  
  To install additional .NET Core runtimes or SDKs:\
    https://aka.ms/dotnet-download
  </code></pre>
  <p>I've done some translating with the result, it may not match entirely the original output</p>