The terminal process failed to launch: Path to shell executable "dotnet" is not a file or a symlink.

Code Example - The terminal process failed to launch: Path to shell executable "dotnet" is not a file or a symlink.

                
                        In tasks.json file, edit the line:
"command": "dotnet"

To:
"command": "/usr/bin/dotnet"

Tested on Linux Mint 20.2