I have downloaded .net5 from official website, but dotnet
command isn't recognised by my terminal.
Here's what I have found after some research-
my dotnet folder is present in
/usr/local/share/dotnet
I used this command but it didn't work
sudo ln -s /usr/local/share/dotnet /usr/local/bin/dotnet
- now whenever I enter
dotnet
in terminal it showszsh: permission denied: dotnet
- now whenever I enter
I also tried this command and it didn't work
sudo ln -s /usr/local/share/dotnet /usr/bin/dotnet
- now whenever I enter
dotnet
in terminal it showszsh: command not found: dotnet
- now whenever I enter
when I open my .cs file in vscode it shows error as
The .NET Core SDK cannot be located. .NET Core debugging will not be enabled. Make sure the .NET Core SDK is installed and is on the path.
here's a screenshot for reference
What should I do :(
dotnet
tool is a part of SDK, not runtime. – Jens