Following the instructions for the scripted install and successfully running the script, the SDK downloaded successfully to home/slippuu/.dotnet and was added to path.
Error notification shows in VSCode:
The .NET Core 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 Core debugging will not be enabled. Make sure the .NET Core SDK is installed and is on the path.
On both the integrated terminal and external terminal emulator, dotnet --info shows:
.NET SDK:
Version: 8.0.402
Commit: 70aa751718
Workload version: 8.0.400-manifests.b6724b7a
MSBuild version: 17.11.4+37eb419ad
Runtime Environment:
OS Name: arch
OS Version:
OS Platform: Linux
RID: linux-x64
Base Path: /home/slippuu/.dotnet/sdk/8.0.402/
.NET workloads installed:
Configured to use loose manifests when installing new manifests.
There are no installed workloads to display.
Host:
Version: 8.0.8
Architecture: x64
Commit: 08338fcaa5
.NET SDKs installed:
8.0.402 [/home/slippuu/.dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.8 [/home/slippuu/.dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.8 [/home/slippuu/.dotnet/shared/Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
Not set
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
This is shown when using all 3 shells installed on the system (sh, bash, zsh), however the extension is unable to run the command when testing for debugging purposes.
Describe the Issue
Following the instructions for the scripted install and successfully running the script, the SDK downloaded successfully to home/slippuu/.dotnet and was added to path.
Error notification shows in VSCode:
The .NET Core 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 Core debugging will not be enabled. Make sure the .NET Core SDK is installed and is on the path.
On both the integrated terminal and external terminal emulator,
dotnet --info
shows:This is shown when using all 3 shells installed on the system (sh, bash, zsh), however the extension is unable to run the command when testing for debugging purposes.
Steps To Reproduce
Using ZSH (default shell)
wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh
chmod +x ./dotnet-install.sh
./dotnet-install.sh --version latest
export DOTNET_ROOT=$HOME/.dotnet
andexport PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools
to both.zshrc
and.bashrc
ms-dotnettools.csdevkit
through Extensions Window.zshrc
to update terminalExpected Behavior
No error message to appear, .NET Core debugging to be enabled
Environment Information
Arch Linux
6.10.10-arch1-1
1.93.1 (38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40) x64
1.10.18
2.45.25
2.1.7
/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/slippuu/.dotnet:/home/slippuu/.dotnet/tools