✅ Dotnet SDK install problems
I used the install script from MS, and followed the troubleshooting steps given in the dotnet-vsc gh repo. I am still getting no output from
which dotnet
, but you can clearly see an exe dotnet
in ~/.dotnet
. Am I missing something?![No description](https://cdn.answeroverflow.com/1212511209144844288/image.png)
22 Replies
Does
dotnet --info
output anything?Command not found
Is that linux?
Yeah
I just did this on Ubuntu:
And it worked fine for me.
I mainly use Windows however.
That will probably work. Curious why that wasnt the command on the MS help page 🤔
Which page?
Install .NET on Linux without using a package manager - .NET
Demonstrates how to install the .NET SDK and the .NET Runtime on Linux without a package manager. Use the install script or manually extract the binaries.
¯\_(ツ)_/¯
Not sure why that wouldn't work either.
But if you are installing it yourself you can probably just use apt
That's worked now. Thanks for you help
because you are on the page named "install .NET on linux without using a package manager"
so the method which installs .NET using a package manager is not listed
Oh oops, I clicked the wrong link out of this page https://learn.microsoft.com/en-gb/dotnet/core/install/linux?WT.mc_id=dotnet-35129-website
was
~/.dotnet
on your PATH?Yes, the installer bash script adds it to path
that's not what I asked meant
was it in
$PATH
in your shell's session?
b/c that's all the matters, if you didn't restart your shell or the script did something wrong it wouldn't have been on PATH