Open Swimburger opened 4 years ago
My current workaround is to find where the dotnet executable is and create a symlink in ~/bin/dotnet.
To find executable: which dotnet
To create link sudo ln -s /opt/rh/rh-dotnet31/root/usr/bin/dotnet ~/bin/dotnet
.
Close VSCode and re-open VSCode connecting to the Red Hat at ~/hello-world.
I get this issue to when I use snap to install the dotnet-sdk rather than instructions on the .net core website
Please see these instructions about using the snap installation of .NET Core sdk https://github.com/OmniSharp/omnisharp-vscode/wiki/Troubleshooting:-'The-.NET-Core-SDK-cannot-be-located.'-errors#linux-snap-instructions
@JoeRobich This solution applies to RHEL as well?
Sorry @Swimburger, I shouldn't have closed.
C# Extension/Omnisharp VS code extension won't find .NET installation on freshly installed RedHat vm with .NET Core 3.1 setup.
Environment data
dotnet --info
output:VS Code version: 1.41.0 C# Extension version: 1.21.9 Remote - SSH Extension version: 0.45.0 Red Hat version: Red Hat Enterprise Linux Server release 7.7 (Maipo)
Steps to reproduce
Create fresh Azure RedHat VM:
SSH into RedHat VM and follow RedHat getting started guide:
Add
source scl_source enable rh-dotnet31
to~/.bashrc
.Connect VS Code Remote Development SSH to Redhat VM at ~/hello-world. At this point C# extension detects a .NET project but fails due to not finding the .NET Core installation.
Expected behavior
C# extension/omni sharp finds .NET Core installation.
Actual behavior
.NET Core installation not found, console output: