I am attempting to use a steam deck game dev with unity and VS code gave this error one day. I DO have .net sdk installed and it is set to PATH. I have tried uninstalling C# extentions and re installing. As well as removing dotnet from this computer and re installing. Nothing as worked.
full error:
The .NET SDK cannot be located: Error running dotnet --info: Error: Command failed: dotnet --info
/bin/sh: line 1: dotnet: command not found
/bin/sh: line 1: dotnet: command not found
. .NET debugging will not be enabled. Make sure the .NET SDK is installed and is on the path.