✅ 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?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 PATHI didn't check and that session is long since gone, so I can't verify one way or the other
Though I wouldve thought
which
wouldve found the exe in the pwdit does not, it only looks in PATH
so, it must not have been in PATH
which makes sense, because the dotnet-install script does not add dotnet to PATH. it is not meant to be used as a general-purpose installer
Did I misinterpret this part?
well. if you started a new session then it'd be gone
At that time it was the same session
when which failed to find
Anyhow, no matter - all is resolved
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
Use the /close command to mark a forum thread as answered