C
C#•13mo ago
AdiZ

In VSCode, SDK not Recognized on ChromeOS

Hi. I just installed the .NET SDK and the Runtime by following the instructions for Ubuntu on the Microsoft Docs website. This is what I get when I run dotnet --info in the Linux terminal:
NET SDK:
Version: 8.0.100
Commit: 57efcf1350
Workload version: 8.0.100-manifests.6c33ef20

Runtime Environment:
OS Name: debian
OS Version: 11
OS Platform: Linux
RID: linux-x64
Base Path: /home/ztech58/.dotnet/sdk/8.0.100/

.NET workloads installed:
Workload version: 8.0.100-manifests.6c33ef20
There are no installed workloads to display.

Host:
Version: 8.0.0
Architecture: x64
Commit: 5535e31a71

.NET SDKs installed:
8.0.100 [/home/ztech58/.dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.0 [/home/ztech58/.dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.0 [/home/ztech58/.dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
None

Environment variables:
DOTNET_ROOT [/home/ztech58/.dotnet]

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download
NET SDK:
Version: 8.0.100
Commit: 57efcf1350
Workload version: 8.0.100-manifests.6c33ef20

Runtime Environment:
OS Name: debian
OS Version: 11
OS Platform: Linux
RID: linux-x64
Base Path: /home/ztech58/.dotnet/sdk/8.0.100/

.NET workloads installed:
Workload version: 8.0.100-manifests.6c33ef20
There are no installed workloads to display.

Host:
Version: 8.0.0
Architecture: x64
Commit: 5535e31a71

.NET SDKs installed:
8.0.100 [/home/ztech58/.dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.0 [/home/ztech58/.dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.0 [/home/ztech58/.dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
None

Environment variables:
DOTNET_ROOT [/home/ztech58/.dotnet]

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download
And this is the error I get when I launch VSCode (or try to create a new C# project):
The .NET Core SDK cannot be located: Error running dotnet --info: Error: Command failed: dotnet --info
/bin/sh: 1: dotnet: not found


/bin/sh: 1: dotnet: not found
. .NET Core debugging will not be enabled. Make sure the .NET Core SDK is installed and is on the path.
The .NET Core SDK cannot be located: Error running dotnet --info: Error: Command failed: dotnet --info
/bin/sh: 1: dotnet: not found


/bin/sh: 1: dotnet: not found
. .NET Core debugging will not be enabled. Make sure the .NET Core SDK is installed and is on the path.
Does anyone know how to fix this?
5 Replies
AdiZ
AdiZOP•13mo ago
Please ping me if you reply - my notifications are funky 🙂
x0rld 👻 🎃
@AdiZ you've installed in ubuntu dotnet chrome OS isn't ubuntu maybe you can specify to vscode the path to the dotnet inside your ubuntu environnement
AdiZ
AdiZOP•13mo ago
Sorry it's debian, I confused them. Still the same installation process
SinFluxx
SinFluxx•13mo ago
Did you install the sdk while vscode was open and haven't closed/reopened it yet?
AdiZ
AdiZOP•13mo ago
I restarted it a bunch of times
Want results from more Discord servers?
Add your server